Ver Fonte

reverted bad change

Tig há 1 ano atrás
pai
commit
07d7bbb1f4
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      Terminal.Gui/Views/Slider.cs

+ 5 - 0
Terminal.Gui/Views/Slider.cs

@@ -50,6 +50,11 @@ public class Slider<T> : View
         SetDefaultStyle ();
         SetCommands ();
 
+        SetContentSize ();
+
+        // BUGBUG: This should not be needed - Need to ensure SetRelativeLayout gets called during EndInit
+        Initialized += (s, e) => { SetContentSize (); };
+
         LayoutStarted += (s, e) => { SetContentSize (); };
     }