1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

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
+10
View File
@@ -115,6 +115,16 @@ bool GUI_App::OnInit()
update_mode();
SetTopWindow(mainframe);
CallAfter([this]() {
// temporary workaround for the correct behavior of the Scrolled sidebar panel
auto& panel = sidebar();
if (panel.obj_list()->GetMinHeight() > 200) {
wxWindowUpdateLocker noUpdates_sidebar(&panel);
panel.obj_list()->SetMinSize(wxSize(-1, 200));
panel.Layout();
}
});
// This makes CallAfter() work
Bind(wxEVT_IDLE, [this](wxIdleEvent& event)
{