X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_panel.h;h=df5c58ebd0450ebaaa7240cb0bab3839ffcfce1b;hb=a496b7a7a1b52f4f16b8dd208f4d7ef6e744af16;hp=ab11a894b95f3dd1e09b7da22239f91154f2646d;hpb=15723e1ba0574d4c62458321e9b6d64236e7e429;p=dcpomatic.git diff --git a/src/wx/content_panel.h b/src/wx/content_panel.h index ab11a894b..df5c58ebd 100644 --- a/src/wx/content_panel.h +++ b/src/wx/content_panel.h @@ -45,14 +45,7 @@ class FilmViewer; class LimitedSplitter : public wxSplitterWindow { public: - LimitedSplitter (wxWindow* parent) - : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE) - { - /* This value doesn't really mean much but we just want to stop double-click on the - divider from shrinking the bottom panel (#1601). - */ - SetMinimumPaneSize (64); - } + LimitedSplitter (wxWindow* parent); bool OnSashPositionChange (int new_position) { @@ -61,6 +54,12 @@ public: } void first_shown (wxWindow* top, wxWindow* bottom); + +private: + void sized (wxSizeEvent& ev); + + bool _first_shown; + int const _top_panel_minimum_size; };