Browse Source

reverted bad change

Tig 1 year ago
parent
commit
07d7bbb1f4
1 changed files with 5 additions and 0 deletions
  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 ();
         SetDefaultStyle ();
         SetCommands ();
         SetCommands ();
 
 
+        SetContentSize ();
+
+        // BUGBUG: This should not be needed - Need to ensure SetRelativeLayout gets called during EndInit
+        Initialized += (s, e) => { SetContentSize (); };
+
         LayoutStarted += (s, e) => { SetContentSize (); };
         LayoutStarted += (s, e) => { SetContentSize (); };
     }
     }