Explorar el Código

BarSize should use Viewport.

BDisp hace 11 meses
padre
commit
c43de60c08
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 
-    private int BarSize => Orientation == Orientation.Vertical ? GetContentSize ().Height : GetContentSize ().Width;
+    private int BarSize => Orientation == Orientation.Vertical ? Viewport.Height : Viewport.Width;
 
     private void SetScrollText ()
     {