use wxFlexGridSizer correctly (fixes #10294)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-12-23 00:20:33 +00:00
parent 763163a80a
commit 53ddede8da

View File

@ -1530,12 +1530,11 @@ wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentF
//
//
// Create and attach the sizer
// Create and attach a 2-column grid sizer
//
wxFlexGridSizer* sizer = new wxFlexGridSizer(2, 1, 0, 0);
this->SetSizer(sizer);
sizer->AddGrowableRow(0);
wxFlexGridSizer* sizer = new wxFlexGridSizer(2);
sizer->AddGrowableCol(0);
this->SetSizer(sizer);
//
// Create our media control
@ -1665,6 +1664,9 @@ wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentF
horsizer3->Add(m_pbSlider, 1, wxALL, 5);
sizer->Add(horsizer3, 1, wxCENTRE | wxALL, 5);
// Now that we have all our rows make some of them growable
sizer->AddGrowableRow(0);
//
// ListCtrl events
//