소스 검색

reverted bad change

Tig 1 년 전
부모
커밋
07d7bbb1f4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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 (); };
     }