Browse Source

Removed AutoSize from Scenarios

Tig 1 year ago
parent
commit
18430df1db

+ 1 - 1
Terminal.Gui/Views/MessageBox.cs

@@ -375,7 +375,7 @@ public static class MessageBox
             Y = 0
         };
 
-        if (!wrapMessage)
+        if (wrapMessage)
         {
             messageLabel.Width = Dim.Fill ();
             messageLabel.Height = Dim.Fill (1);

+ 0 - 4
UICatalog/Scenarios/ASCIICustomButton.cs

@@ -82,8 +82,6 @@ public class ASCIICustomButtonTest : Scenario
         {
             _border = new FrameView { Width = Width, Height = Height };
 
-            AutoSize = false;
-
             var fillText = new StringBuilder ();
 
             for (var i = 0; i < Viewport.Height; i++)
@@ -198,7 +196,6 @@ public class ASCIICustomButtonTest : Scenario
 
                 var button = new ASCIICustomButton
                 {
-                    AutoSize = false,
                     Id = j.ToString (),
                     Text = $"section {j}",
                     Y = yPos,
@@ -217,7 +214,6 @@ public class ASCIICustomButtonTest : Scenario
 
             var closeButton = new ASCIICustomButton
             {
-                AutoSize = false,
                 Id = "close",
                 Text = "Close",
                 Y = Pos.Bottom (prevButton),

+ 0 - 1
UICatalog/Scenarios/Adornments.cs

@@ -72,7 +72,6 @@ public class Adornments : Scenario
 
         var labelAnchorEnd = new Label
         {
-            AutoSize = false,
             Y = Pos.AnchorEnd (),
             Width = 40,
             Height = Dim.Percent(20),