Quellcode durchsuchen

Tweaked validation logic

Tig vor 1 Jahr
Ursprung
Commit
c738d2baad
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  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;
                     break;
 
 
+                case Dim dim and DimAuto:
+                    break;
+
                 case Dim dim and not DimAbsolute and not DimView and not DimCombine:
                 case Dim dim and not DimAbsolute and not DimView and not DimCombine:
                     bad = dim;
                     bad = dim;
 
 

+ 1 - 1
UICatalog/Scenarios/MessageBoxes.cs

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