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
This commit is contained in:
Vadim Zeitlin 2007-02-11 02:33:17 +00:00
parent 9f7a07ab9f
commit bc3863bd16

View File

@ -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)