浏览代码

Moved to the end.

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

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

@@ -666,11 +666,11 @@ namespace Terminal.Gui {
 				CanFocus = true;
 				view.tabIndex = tabIndexes.IndexOf (view);
 			}
+			SetNeedsLayout ();
+			SetNeedsDisplay ();
 			if (IsInitialized) {
 				view.BeginInit ();
 			}
-			SetNeedsLayout ();
-			SetNeedsDisplay ();
 		}
 
 		/// <summary>