]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed initial size of a control with wxDefaultSize: due to SetSize() call in Create...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 20 Dec 2006 10:06:43 +0000 (10:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 20 Dec 2006 10:06:43 +0000 (10:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index f3877df5c1c385625f614e5b029ff112ecebc126..01006a404a3c213b0829958257514277605b512e 100644 (file)
@@ -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 )
         {