X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..8fdd04f882cd54893dcf0aff4940faac64e2efb9:/samples/display/display.cpp diff --git a/samples/display/display.cpp b/samples/display/display.cpp index c497f25a23..22a94cf0b6 100644 --- a/samples/display/display.cpp +++ b/samples/display/display.cpp @@ -293,10 +293,11 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, (unsigned long)nDpy)); } - wxNotebookSizer *notebookSizer = new wxNotebookSizer(m_notebook); - panel->SetSizer(notebookSizer); - notebookSizer->Fit(this); - + wxBoxSizer *sizer = new wxBoxSizer(wxHORIZONTAL); + sizer->Add(m_notebook, 1, wxEXPAND); + panel->SetSizer(sizer); + sizer->Fit(this); + sizer->SetSizeHints(this); } wxString MyFrame::VideoModeToText(const wxVideoMode& mode)