mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 09:32:09 +00:00
OnInit: Move preset loading out of EVT_IDLE/once, remove temp workaround of sidebar scrollbar
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user