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
This commit is contained in:
@@ -471,7 +471,7 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
|
|||||||
// Windows XP, so if we're sure it works correctly under other
|
// Windows XP, so if we're sure it works correctly under other
|
||||||
// systems we could do this only for XP
|
// systems we could do this only for XP
|
||||||
SetSize(-1, 1); // 1 is small enough to force vert scrollbar
|
SetSize(-1, 1); // 1 is small enough to force vert scrollbar
|
||||||
SetSize(size);
|
SetInitialSize(size);
|
||||||
}
|
}
|
||||||
else if ( m_windowStyle & wxTE_AUTO_URL )
|
else if ( m_windowStyle & wxTE_AUTO_URL )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user