mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Revert "Fixed for dynamically added view."
This reverts commit adae58bbf7.
This commit is contained in:
@@ -621,18 +621,13 @@ namespace Terminal.Gui {
|
||||
container.ChildNeedsDisplay ();
|
||||
if (subviews == null)
|
||||
return;
|
||||
foreach (var view in subviews) {
|
||||
if (IsInitialized && !view.IsInitialized) {
|
||||
view.BeginInit ();
|
||||
view.EndInit ();
|
||||
}
|
||||
foreach (var view in subviews)
|
||||
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;
|
||||
@@ -671,6 +666,9 @@ namespace Terminal.Gui {
|
||||
CanFocus = true;
|
||||
view.tabIndex = tabIndexes.IndexOf (view);
|
||||
}
|
||||
if (IsInitialized) {
|
||||
view.BeginInit ();
|
||||
}
|
||||
SetNeedsLayout ();
|
||||
SetNeedsDisplay ();
|
||||
}
|
||||
|
||||
@@ -700,9 +700,6 @@ namespace Terminal.Gui {
|
||||
|
||||
v1.Add (sv1);
|
||||
|
||||
while (!sv1.CanFocus) {
|
||||
}
|
||||
|
||||
Application.Refresh ();
|
||||
t.Running = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user