浏览代码

Fixes #3702. Manipulating Adornment doesn't always cause LayoutSubviews.

BDisp 1 年之前
父节点
当前提交
949668cab7
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Terminal.Gui/View/Layout/DimAuto.cs

+ 5 - 0
Terminal.Gui/View/Layout/DimAuto.cs

@@ -153,6 +153,11 @@ public record DimAuto (Dim? MaximumContentDim, Dim? MinimumContentDim, DimAutoSt
                                                            .ToList ();
                                                            .ToList ();
                 }
                 }
 
 
+                foreach (View notDependentSubView in notDependentSubViews)
+                {
+                    notDependentSubView.SetRelativeLayout (us.Frame.Size);
+                }
+
                 for (var i = 0; i < notDependentSubViews.Count; i++)
                 for (var i = 0; i < notDependentSubViews.Count; i++)
                 {
                 {
                     View v = notDependentSubViews [i];
                     View v = notDependentSubViews [i];