Fixed layout test

This commit is contained in:
Tigger Kindel
2023-03-31 07:02:30 -06:00
parent 176e622eb6
commit 3b7f4af566
2 changed files with 2 additions and 2 deletions

View File

@@ -468,7 +468,7 @@ namespace Terminal.Gui {
get => frame;
set {
frame = new Rect (value.X, value.Y, Math.Max (value.Width, 0), Math.Max (value.Height, 0));
if (IsInitialized) {
if (IsInitialized || LayoutStyle == LayoutStyle.Absolute) {
TextFormatter.Size = GetSizeNeededForTextAndHotKey ();
LayoutFrames ();
SetNeedsLayout ();

View File

@@ -113,7 +113,7 @@ namespace UICatalog.Scenarios {
root.Tiles.ElementAt (1).Title = (bool)cbTitles.Checked ? $"View 2" : string.Empty;
root.Border.BorderStyle = (bool)border ? BorderStyle.Rounded : BorderStyle.None;
root.BorderStyle = (bool)border ? BorderStyle.Rounded : BorderStyle.None;
workArea.Add (root);