mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed layout test
This commit is contained in:
@@ -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 ();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user