瀏覽代碼

Removed AutoSize from Scenarios

Tig 1 年之前
父節點
當前提交
18430df1db
共有 3 個文件被更改,包括 1 次插入6 次删除
  1. 1 1
      Terminal.Gui/Views/MessageBox.cs
  2. 0 4
      UICatalog/Scenarios/ASCIICustomButton.cs
  3. 0 1
      UICatalog/Scenarios/Adornments.cs

+ 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),