Vertically-scroll content panels if required.
[dcpomatic.git] / src / wx / content_sub_panel.cc
index 674b3036976b2f68855739955d725fec6fa5e45c..781d3b3309b64cc35fb611fd11bbc2423bc560bf 100644 (file)
@@ -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);
 }