From: Vadim Zeitlin Date: Wed, 20 Dec 2006 10:06:43 +0000 (+0000) Subject: fixed initial size of a control with wxDefaultSize: due to SetSize() call in Create... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b370e7587f0875733b859f496bc2a99c573ff088?ds=inline fixed initial size of a control with wxDefaultSize: due to SetSize() call in Create() introduced in 1.243 it was created with 1 pixel height git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index f3877df5c1..01006a404a 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -471,7 +471,7 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, // Windows XP, so if we're sure it works correctly under other // systems we could do this only for XP SetSize(-1, 1); // 1 is small enough to force vert scrollbar - SetSize(size); + SetInitialSize(size); } else if ( m_windowStyle & wxTE_AUTO_URL ) {