From: Vadim Zeitlin Date: Sun, 11 Feb 2007 02:33:17 +0000 (+0000) Subject: fit the control when its real contents is attached and not simply (re-)layout it... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc3863bd16802e3e3380867b4eb27c604dca1f44?ds=inline fit the control when its real contents is attached and not simply (re-)layout it as it has no effect (patch 1644924) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xh_unkwn.cpp b/src/xrc/xh_unkwn.cpp index d970968913..a5e869fb6a 100644 --- a/src/xrc/xh_unkwn.cpp +++ b/src/xrc/xh_unkwn.cpp @@ -68,8 +68,7 @@ void wxUnknownControlContainer::AddChild(wxWindowBase *child) wxSizer *sizer = new wxBoxSizer(wxHORIZONTAL); sizer->Add((wxWindow*)child, 1, wxEXPAND); - SetSizer(sizer); - Layout(); + SetSizerAndFit(sizer); } void wxUnknownControlContainer::RemoveChild(wxWindowBase *child)