From: Carl Hetherington Date: Sun, 19 Feb 2017 00:01:16 +0000 (+0000) Subject: Vertically-scroll content panels if required. X-Git-Tag: v2.11.1~160 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=6727f7e47db1ad7b0a21f2047e8ed3b4e1968b2a;hp=1c3794115618500ef245c11483b22590886d4b0b;p=dcpomatic.git Vertically-scroll content panels if required. --- diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index 674b30369..781d3b330 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -32,11 +32,12 @@ using std::string; using boost::shared_ptr; ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) - : wxPanel (p->notebook(), wxID_ANY) + : wxScrolledWindow (p->notebook(), wxID_ANY) , _parent (p) , _sizer (new wxBoxSizer (wxVERTICAL)) { p->notebook()->AddPage (this, name, false); + SetScrollRate (-1, 8); SetSizer (_sizer); } diff --git a/src/wx/content_sub_panel.h b/src/wx/content_sub_panel.h index 540ccb240..44d5ee1a5 100644 --- a/src/wx/content_sub_panel.h +++ b/src/wx/content_sub_panel.h @@ -29,7 +29,7 @@ class ContentPanel; class Content; class DCPContent; -class ContentSubPanel : public wxPanel +class ContentSubPanel : public wxScrolledWindow { public: ContentSubPanel (ContentPanel *, wxString);