Browse Source

Fixed subview layout (#159)

Cameron MacFarland 6 years ago
parent
commit
740ee36ecc
1 changed files with 2 additions and 0 deletions
  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);