فهرست منبع

I think this was already done before.

BDisp 11 ماه پیش
والد
کامیت
3bd46388fc
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      Terminal.Gui/Views/Scroll/Scroll.cs

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

@@ -68,10 +68,10 @@ public class Scroll : View
                 return;
             }
 
-            if (SupView is { IsInitialized: false })
+            if (SuperViewAsScrollBar is { IsInitialized: false })
             {
                 // Ensures a more exactly calculation
-                SetRelativeLayout (SupView.Frame.Size);
+                SetRelativeLayout (SuperViewAsScrollBar.Frame.Size);
             }
 
             int barSize = BarSize;
@@ -185,7 +185,7 @@ public class Scroll : View
 
     internal void AdjustScroll ()
     {
-        if (SupView is { })
+        if (SuperViewAsScrollBar is { })
         {
             X = Orientation == Orientation.Vertical ? 0 : 1;
             Y = Orientation == Orientation.Vertical ? 1 : 0;
@@ -205,7 +205,7 @@ public class Scroll : View
         AdjustScroll ();
     }
 
-    internal ScrollBar? SupView => SuperView as ScrollBar;
+    internal ScrollBar? SuperViewAsScrollBar => SuperView as ScrollBar;
 
     private int BarSize => Orientation == Orientation.Vertical ? Viewport.Height : Viewport.Width;