Jelajahi Sumber

Moved to the end.

BDisp 5 tahun lalu
induk
melakukan
a62ce82cc7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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>