Browse Source

BarSize should use Viewport.

BDisp 11 months ago
parent
commit
c43de60c08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Views/Scroll/Scroll.cs

+ 1 - 1
Terminal.Gui/Views/Scroll/Scroll.cs

@@ -207,7 +207,7 @@ public class Scroll : View
 
 
     internal ScrollBar? SupView => SuperView as ScrollBar;
     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 ()
     private void SetScrollText ()
     {
     {