X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25dff19c97d1b37c364ef89554840dfeb6217c2b..72366f68d1036084d1adc5971eeee4885f36fe5c:/src/msw/spinctrl.cpp diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 14bdda9ae0..80d15e665b 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -391,7 +391,7 @@ bool wxSpinCtrl::Create(wxWindow *parent, sizeText.y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy); } - SetBestSize(size); + SetInitialSize(size); (void)::ShowWindow(GetBuddyHwnd(), SW_SHOW);