From c43de60c08f34d042f20dfacd73dff3be82b3dfc Mon Sep 17 00:00:00 2001 From: BDisp Date: Tue, 3 Sep 2024 19:34:19 +0100 Subject: [PATCH] BarSize should use Viewport. --- Terminal.Gui/Views/Scroll/Scroll.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/Scroll/Scroll.cs b/Terminal.Gui/Views/Scroll/Scroll.cs index 12ba1ade0..a5839feea 100644 --- a/Terminal.Gui/Views/Scroll/Scroll.cs +++ b/Terminal.Gui/Views/Scroll/Scroll.cs @@ -207,7 +207,7 @@ public class Scroll : View internal ScrollBar? SupView => SuperView as ScrollBar; - private int BarSize => Orientation == Orientation.Vertical ? GetContentSize ().Height : GetContentSize ().Width; + private int BarSize => Orientation == Orientation.Vertical ? Viewport.Height : Viewport.Width; private void SetScrollText () {