Browse Source

Fixed layout test

Tigger Kindel 2 years ago
parent
commit
3b7f4af566
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Terminal.Gui/Core/View.cs
  2. 1 1
      UICatalog/Scenarios/TileViewNesting.cs

+ 1 - 1
Terminal.Gui/Core/View.cs

@@ -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 ();

+ 1 - 1
UICatalog/Scenarios/TileViewNesting.cs

@@ -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);