Temporary workaround for the correct behavior of the Scrolled sidebar panel

This commit is contained in:
YuSanka 2018-11-15 12:25:08 +01:00
parent ede21eec7a
commit 410568c9d9
2 changed files with 14 additions and 1 deletions

View file

@ -83,7 +83,10 @@ ObjectList::~ObjectList()
void ObjectList::create_objects_ctrl()
{
SetMinSize(wxSize(-1, 150)); // TODO - Set correct height according to the opened/closed objects
// 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, 1500)); // #ys_FIXME
m_sizer = new wxBoxSizer(wxVERTICAL);
m_sizer->Add(this, 1, wxGROW | wxLEFT, 20);