Scroll about dialog tabs if necessary.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Jan 2016 20:11:42 +0000 (20:11 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Jan 2016 20:11:42 +0000 (20:11 +0000)
src/wx/about_dialog.cc

index ff6acedb1aca932ba448b475cb1e7ec355287ac6..efe762fea1cccf1aaa48d258804419d6f96e4175 100644 (file)
@@ -301,7 +301,10 @@ AboutDialog::add_section (wxString name, wxArrayString credits)
        static bool first = true;
        int const N = 4;
 
-       wxPanel* panel = new wxPanel (_notebook, wxID_ANY);
+       wxScrolledWindow* panel = new wxScrolledWindow (_notebook);
+       panel->SetMaxSize (wxSize (-1, 380));
+       panel->EnableScrolling (false, true);
+       panel->SetScrollRate (0, 32);
        wxSizer* overall_sizer = new wxBoxSizer (wxHORIZONTAL);
 
        vector<wxSizer*> sizers;