X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f10ccf9e6b4e67e08a3d13cd06cb13f28be15f4f..20c81bed846981e90769826b94a91eebb91158f1:/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);