]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
Fixed premature exit of helpview sample and utility
[wxWidgets.git] / src / univ / textctrl.cpp
index ff7515af56758b1cf4b71677593cae22aee4ea6f..ebb49dcc83037353cefa7873c71e7014a3a52cda 100644 (file)
@@ -740,7 +740,7 @@ bool wxTextCtrl::Create(wxWindow *parent,
 
     RecalcFontMetrics();
     SetValue(value);
-    SetBestSize(size);
+    SetInitialSize(size);
 
     m_isEditable = !(style & wxTE_READONLY);