BarSize should use Viewport.

This commit is contained in:
BDisp
2024-09-03 19:34:19 +01:00
parent bf4b7bdede
commit c43de60c08

View File

@@ -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 ()
{