OnInit: Move preset loading out of EVT_IDLE/once, remove temp workaround of sidebar scrollbar

This commit is contained in:
Vojtech Kral 2019-03-11 11:49:24 +01:00
parent 75cf1cde92
commit 9522cd1d4f
2 changed files with 4 additions and 17 deletions

View file

@ -115,10 +115,7 @@ ObjectList::~ObjectList()
void ObjectList::create_objects_ctrl()
{
// temporary workaround for the correct behavior of the Scrolled sidebar panel:
// 1. set a height of the list to some big value
// 2. change it to the normal min value (200) after first whole App updating/layouting
SetMinSize(wxSize(-1, 3000)); // #ys_FIXME
SetMinSize(wxSize(-1, 15 * wxGetApp().em_unit()));
m_sizer = new wxBoxSizer(wxVERTICAL);
m_sizer->Add(this, 1, wxGROW);