]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
update button style to include BS_MULTILINE when a multiline label is set
[wxWidgets.git] / src / generic / spinctlg.cpp
index 409b708a0e16f40eef88eb4e9b4387d25f079cb6..88de174cfd1cbce078abe74707d9255c062756b9 100644 (file)
@@ -183,7 +183,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
 
     m_btn->SetRange(min, max);
     m_btn->SetValue(initial);
-    SetBestSize(size);
+    SetInitialSize(size);
     Move(pos);
 
     // have to disable this window to avoid interfering it with message