also call AddGrowableRow/Col() for wxGridBagSizer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-12-24 00:29:38 +00:00
parent 5dd238c6dd
commit 1808bb47b9
2 changed files with 6 additions and 3 deletions

View File

@ -44,7 +44,7 @@ private:
#endif
wxSizer* Handle_wxGridSizer();
wxFlexGridSizer* Handle_wxFlexGridSizer();
wxSizer* Handle_wxGridBagSizer();
wxGridBagSizer* Handle_wxGridBagSizer();
wxSizer* Handle_wxWrapSizer();
void SetGrowables(wxFlexGridSizer* fsizer, const wxChar* param, bool rows);

View File

@ -223,7 +223,10 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
sizer = flexsizer;
}
else if (m_class == wxT("wxGridBagSizer"))
sizer = Handle_wxGridBagSizer();
{
flexsizer = Handle_wxGridBagSizer();
sizer = flexsizer;
}
else if (m_class == wxT("wxWrapSizer"))
sizer = Handle_wxWrapSizer();
@ -321,7 +324,7 @@ wxFlexGridSizer* wxSizerXmlHandler::Handle_wxFlexGridSizer()
}
wxSizer* wxSizerXmlHandler::Handle_wxGridBagSizer()
wxGridBagSizer* wxSizerXmlHandler::Handle_wxGridBagSizer()
{
return new wxGridBagSizer(GetDimension(wxT("vgap")), GetDimension(wxT("hgap")));
}