Quellcode durchsuchen

Fixed bug in Adornments editor

Tig vor 1 Jahr
Ursprung
Commit
358acc6e99
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      UICatalog/Scenarios/Adornments.cs

+ 4 - 4
UICatalog/Scenarios/Adornments.cs

@@ -212,6 +212,8 @@ public class Adornments : Scenario
 
         private void AdornmentEditor_Initialized (object sender, EventArgs e)
         {
+            SuperViewRendersLineCanvas = true;
+
             _topEdit = new ()
             {
                 X = Pos.Center (), Y = 0
@@ -282,11 +284,9 @@ public class Adornments : Scenario
             _rightEdit.Value = Thickness.Right;
             _bottomEdit.Value = Thickness.Bottom;
 
-            // TODO: Use Dim.Auto(subviews) when ready
-            Width = Dim.Auto ();// GetAdornmentsThickness ().Horizontal + _foregroundColorPicker.Frame.Width * 2 - 3;
-            Height = Dim.Auto (); //GetAdornmentsThickness ().Vertical + 4 + 3;
+            Width = Dim.Auto () - 1;
+            Height = Dim.Auto () - 1;
             LayoutSubviews ();
-            SetContentSize (new (_foregroundColorPicker.Frame.Width * 2 + 1, 4 + 3 ));
         }
 
         private void Top_ValueChanging (object sender, StateEventArgs<int> e)