|
@@ -621,13 +621,18 @@ namespace Terminal.Gui {
|
|
|
container.ChildNeedsDisplay ();
|
|
|
if (subviews == null)
|
|
|
return;
|
|
|
- foreach (var view in subviews)
|
|
|
+ foreach (var view in subviews) {
|
|
|
+ if (IsInitialized && !view.IsInitialized) {
|
|
|
+ view.BeginInit ();
|
|
|
+ view.EndInit ();
|
|
|
+ }
|
|
|
if (view.Frame.IntersectsWith (region)) {
|
|
|
var childRegion = Rect.Intersect (view.Frame, region);
|
|
|
childRegion.X -= view.Frame.X;
|
|
|
childRegion.Y -= view.Frame.Y;
|
|
|
view.SetNeedsDisplay (childRegion);
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
internal bool childNeedsDisplay;
|
|
@@ -666,9 +671,6 @@ namespace Terminal.Gui {
|
|
|
CanFocus = true;
|
|
|
view.tabIndex = tabIndexes.IndexOf (view);
|
|
|
}
|
|
|
- if (IsInitialized) {
|
|
|
- view.BeginInit ();
|
|
|
- }
|
|
|
SetNeedsLayout ();
|
|
|
SetNeedsDisplay ();
|
|
|
}
|