diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-02-19 00:01:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-02-19 00:01:16 +0000 |
| commit | 6727f7e47db1ad7b0a21f2047e8ed3b4e1968b2a (patch) | |
| tree | b2fff4856a7cb538b29f7deb9d38b9aeac8578b5 /src/wx/content_sub_panel.cc | |
| parent | 1c3794115618500ef245c11483b22590886d4b0b (diff) | |
Vertically-scroll content panels if required.
Diffstat (limited to 'src/wx/content_sub_panel.cc')
| -rw-r--r-- | src/wx/content_sub_panel.cc | 3 |
1 files changed, 2 insertions, 1 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); } |
