ソースを参照

Prevent passing wrong frame to SetRelativeLayout method.

BDisp 2 年 前
コミット
9d9d088a30
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Terminal.Gui/Core/View.cs

+ 1 - 1
Terminal.Gui/Core/View.cs

@@ -2449,7 +2449,7 @@ namespace Terminal.Gui {
 
 
 			foreach (var v in ordered) {
 			foreach (var v in ordered) {
 				if (v.LayoutStyle == LayoutStyle.Computed) {
 				if (v.LayoutStyle == LayoutStyle.Computed) {
-					v.SetRelativeLayout (Frame);
+					v.SetRelativeLayout (v?.SuperView.Frame ?? Frame);
 				}
 				}
 
 
 				v.LayoutSubviews ();
 				v.LayoutSubviews ();