Don't use default size of control has a sizer (as per other ports)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3a5677401f
commit
30b8043911
@ -245,6 +245,9 @@ WXDWORD wxControl::MSWGetStyle(long style, WXDWORD *exstyle) const
|
||||
|
||||
wxSize wxControl::DoGetBestSize() const
|
||||
{
|
||||
if (m_windowSizer)
|
||||
return wxControlBase::DoGetBestSize();
|
||||
|
||||
return wxSize(DEFAULT_ITEM_WIDTH, DEFAULT_ITEM_HEIGHT);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user