Sfoglia il codice sorgente

work around dimauto issue

Tig 1 anno fa
parent
commit
7b377f6405

+ 1 - 0
UICatalog/Scenarios/BorderEditor.cs

@@ -32,6 +32,7 @@ public class BorderEditor : AdornmentEditor
         _rbBorderStyle = new RadioGroup
         {
             X = 0,
+            // BUGBUG: Hack until dimauto is working properly
             Y = Pos.Bottom (Subviews [^1]),
             Width = Dim.Width (Subviews [^2]) + Dim.Width (Subviews [^1]) - 1,
             SelectedItem = (int)(((Border)AdornmentToEdit)?.LineStyle ?? LineStyle.None),

+ 3 - 1
UICatalog/Scenarios/MarginEditor.cs

@@ -16,7 +16,9 @@ public class MarginEditor : AdornmentEditor
         var ckbShadow = new CheckBox
         {
             X = 0,
-            Y = Pos.AnchorEnd (),
+            //Y = Pos.AnchorEnd(),
+            // BUGBUG: Hack until dimauto is working properly
+            Y = Pos.Bottom (Subviews [^1]),
 
             SuperViewRendersLineCanvas = true,
             Title = "_Shadow",

+ 2 - 0
UICatalog/Scenarios/ThreeD.cs

@@ -13,6 +13,8 @@ public class ThreeD : Scenario
 {
     public override void Main ()
     {
+        Application.Init ();
+
         Window app = new ()
         {
             Title = $"{Application.QuitKey} to Quit - Scenario: {GetName ()}"