From 6727f7e47db1ad7b0a21f2047e8ed3b4e1968b2a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 Feb 2017 00:01:16 +0000 Subject: [PATCH] Vertically-scroll content panels if required. --- src/wx/content_sub_panel.cc | 3 ++- src/wx/content_sub_panel.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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); -- 2.30.2