From bc3863bd16802e3e3380867b4eb27c604dca1f44 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 11 Feb 2007 02:33:17 +0000 Subject: [PATCH] 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 --- src/xrc/xh_unkwn.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)