- _notebook = new wxNotebook (_panel, wxID_ANY);
- _sizer->Add (_notebook, 1, wxEXPAND | wxTOP, 6);
+ _notebook = new wxNotebook (_splitter, wxID_ANY);
+
+ /* This is a hack to try and make the content notebook a sensible size; large on big displays but small
+ enough on small displays to leave space for the content area.
+ */
+ wxDisplay display (wxDisplay::GetFromWindow(_splitter));
+ wxRect screen = display.GetClientArea();
+ _splitter->SplitHorizontally (top, _notebook, screen.height > 800 ? -600 : -150);