X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_sub_panel.cc;h=9c236abebfef4a1b552b5e8b5f084a283f569a1d;hb=b7672a6d2d999489a188c539de7d01f5042fdee5;hp=b4ba5517562588f2282b2b8d7c244fff63e26d45;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index b4ba55175..9c236abeb 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -25,7 +25,6 @@ #include "lib/compose.hpp" #include "lib/log.h" #include -#include using std::list; using std::string; @@ -48,7 +47,7 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) } void -ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, shared_ptr dcp, bool can_reference, wxString cannot) const +ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, shared_ptr dcp, bool can_reference, wxString cannot) { button->Enable (can_reference); @@ -66,5 +65,18 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, sha note->Show (); } + layout (); +} + + +void +ContentSubPanel::layout () +{ + int x; + int y; + GetViewStart (&x, &y); + Scroll (0, 0); _sizer->Layout (); + Scroll (x, y); } +