瀏覽代碼

Use GetContentSize instead of Fame.

BDisp 11 月之前
父節點
當前提交
6507b1078b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
                 foreach (View notDependentSubView in notDependentSubViews)
                 {
                 {
-                    notDependentSubView.SetRelativeLayout (us.Frame.Size);
+                    notDependentSubView.SetRelativeLayout (us.GetContentSize ());
                 }
                 }
 
 
                 for (var i = 0; i < notDependentSubViews.Count; i++)
                 for (var i = 0; i < notDependentSubViews.Count; i++)