浏览代码

Tweaked validation logic

Tig 1 年之前
父节点
当前提交
c738d2baad
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      Terminal.Gui/View/Layout/ViewLayout.cs
  2. 1 1
      UICatalog/Scenarios/MessageBoxes.cs

+ 3 - 0
Terminal.Gui/View/Layout/ViewLayout.cs

@@ -1119,6 +1119,9 @@ public partial class View
 
                     break;
 
+                case Dim dim and DimAuto:
+                    break;
+
                 case Dim dim and not DimAbsolute and not DimView and not DimCombine:
                     bad = dim;
 

+ 1 - 1
UICatalog/Scenarios/MessageBoxes.cs

@@ -190,7 +190,7 @@ public class MessageBoxes : Scenario
         };
         frame.Add (ckbWrapMessage);
 
-        //frame.ValidatePosDim = true;
+        frame.ValidatePosDim = true;
 
         label = new ()
         {