Fixed subview layout (#159)

This commit is contained in:
Cameron MacFarland
2019-01-15 05:35:45 +08:00
committed by Miguel de Icaza
parent 7f94997803
commit 740ee36ecc

View File

@@ -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);