]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/slider.cpp
Added wxWrapSizer (modified patch: [1826950] Wrapping Sizer) from Arne Steinarson
[wxWidgets.git] / src / univ / slider.cpp
index 4df2aae29a84810976ef866ca7ce4adba8d2d65a..0e29c6080665404a15a5feb1e589c5258297248d 100644 (file)
@@ -171,7 +171,7 @@ bool wxSlider::Create(wxWindow *parent,
 
     // call this after setting the range as the best size depends (at least if
     // we have wxSL_LABELS style) on the range
-    SetBestSize(size);
+    SetInitialSize(size);
 
     CreateInputHandler(wxINP_HANDLER_SLIDER);