Hopefully improve layout on high-resolution displays (#1303).
[dcpomatic.git] / src / wx / content_sub_panel.cc
index aee0d6595ae3e8a3ca8743c450545151d94728b6..2fe104563eb16db5d0d35908649bcab1c8f4e50c 100644 (file)
@@ -39,6 +39,8 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
 {
        SetScrollRate (8, 8);
        SetSizer (_sizer);
+       /* This stops the notebook collapsing to near-zero size.  The 600 is a guess. */
+       SetMinSize (wxSize(-1, 600));
 
        _grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
        _sizer->Add (_grid, 0, wxALL, 8);