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:
parent
9f7a07ab9f
commit
bc3863bd16
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user