Bläddra i källkod

Fixed subview layout (#159)

Cameron MacFarland 6 år sedan
förälder
incheckning
740ee36ecc
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      Terminal.Gui/Core.cs

+ 2 - 0
Terminal.Gui/Core.cs

@@ -473,6 +473,7 @@ namespace Terminal.Gui {
 			view.container = this;
 			if (view.CanFocus)
 				CanFocus = true;
+			SetNeedsLayout ();
 			SetNeedsDisplay ();
 		}
 
@@ -513,6 +514,7 @@ namespace Terminal.Gui {
 			if (view == null || subviews == null)
 				return;
 
+			SetNeedsLayout ();
 			SetNeedsDisplay ();
 			var touched = view.Frame;
 			subviews.Remove (view);