#include "lib/compose.hpp"
#include "lib/log.h"
#include <wx/notebook.h>
-#include <boost/foreach.hpp>
using std::list;
using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
}
void
-ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, shared_ptr<DCPContent> dcp, bool can_reference, wxString cannot) const
+ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, shared_ptr<DCPContent> dcp, bool can_reference, wxString cannot)
{
button->Enable (can_reference);
note->Show ();
}
+ layout ();
+}
+
+
+void
+ContentSubPanel::layout ()
+{
+ int x;
+ int y;
+ GetViewStart (&x, &y);
+ Scroll (0, 0);
_sizer->Layout ();
+ Scroll (x, y);
}
+