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