From 740ee36ecc56529c994594c89b3b1af92c15a30a Mon Sep 17 00:00:00 2001 From: Cameron MacFarland Date: Tue, 15 Jan 2019 05:35:45 +0800 Subject: [PATCH] Fixed subview layout (#159) --- Terminal.Gui/Core.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs index c198aed1b..7e86ae5af 100644 --- a/Terminal.Gui/Core.cs +++ b/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);