From: Robert Roebling Date: Wed, 18 Feb 2009 21:20:04 +0000 (+0000) Subject: Don't use default size of control has a sizer (as per other ports) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/30b80439116f85c67f595661b7bb369f17c1eb1e 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 --- diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 5c1740dfad..b3e4f5b2ec 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -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); }