Browse Source

Use GetContentSize instead of Fame.

BDisp 11 tháng trước cách đây
mục cha
commit
6507b1078b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Terminal.Gui/View/Layout/DimAuto.cs

+ 1 - 1
Terminal.Gui/View/Layout/DimAuto.cs

@@ -155,7 +155,7 @@ public record DimAuto (Dim? MaximumContentDim, Dim? MinimumContentDim, DimAutoSt
 
                 foreach (View notDependentSubView in notDependentSubViews)
                 {
-                    notDependentSubView.SetRelativeLayout (us.Frame.Size);
+                    notDependentSubView.SetRelativeLayout (us.GetContentSize ());
                 }
 
                 for (var i = 0; i < notDependentSubViews.Count; i++)