Skip to content

Commit bc41d9b

Browse files
authored
Fixes #2465 - Simplify/Enforce LayoutStyle.Absolute when X, Y, Width, and/or Height are null or Absolute() (#2467)
* Merged v2_develop; updated API docs * Code cleanup * Fixed code that was using Dim/Pos before IsInit * Fixed ComboBox using Bounds before IsInitalized and grabbing focus when it shouldn't * Fixed ComboBox tests. Fixed FileDialog * Fixed all !IsInitalized warnings * Fixed AllviewsTester * Fixed CharMap scenario * Fixed ColorPicker (hack) * Fixed CoputedLayout and Csv Editor * Imrpoved warning * Fixed more warnings * Fixed GetTextFormatterSizeNeededForTextAndHotKey * Fixed AllViewsTester * AllViewsTester code cleanup * AllViewsTester code cleanup * AllViewsTester fixed for realz * Decided Fill was better than Percent for default
1 parent 3b394c8 commit bc41d9b

32 files changed

+3430
-3414
lines changed

Terminal.Gui/View/Layout/ViewLayout.cs

Lines changed: 129 additions & 57 deletions
Large diffs are not rendered by default.

Terminal.Gui/View/View.cs

Lines changed: 438 additions & 451 deletions
Large diffs are not rendered by default.

Terminal.Gui/View/ViewDrawing.cs

Lines changed: 448 additions & 440 deletions
Large diffs are not rendered by default.

Terminal.Gui/View/ViewSubViews.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ public virtual void Add (View view)
8282
view._oldEnabled = true;
8383
view.Enabled = false;
8484
}
85-
SetNeedsLayout ();
86-
SetNeedsDisplay ();
8785

8886
OnAdded (new SuperViewChangedEventArgs (this, view));
8987
if (IsInitialized && !view.IsInitialized) {
9088
view.BeginInit ();
9189
view.EndInit ();
9290
}
91+
92+
SetNeedsLayout ();
93+
SetNeedsDisplay ();
9394
}
9495

9596
/// <summary>

0 commit comments

Comments
 (0)