X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f10ccf9e6b4e67e08a3d13cd06cb13f28be15f4f..a8728f8f37820b49765c5c3ccfebe2b3c0f94ea3:/src/univ/textctrl.cpp diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index ff7515af56..ebb49dcc83 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -740,7 +740,7 @@ bool wxTextCtrl::Create(wxWindow *parent, RecalcFontMetrics(); SetValue(value); - SetBestSize(size); + SetInitialSize(size); m_isEditable = !(style & wxTE_READONLY);