From 8849aa77dc5fe4eacaafd29c274dcbdacc638aef Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 18 Dec 2020 11:31:14 +0100 Subject: [PATCH] Decrease min height for ObjectList (related to #5462) --- src/slic3r/GUI/GUI_ObjectList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index f0c23f1d4..ed3e9199d 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -261,10 +261,10 @@ ObjectList::~ObjectList() void ObjectList::set_min_height() { /* Temporary workaround for the correct behavior of the Scrolled sidebar panel: - * change min hight of object list to the normal min value (35 * wxGetApp().em_unit()) + * change min hight of object list to the normal min value (20 * wxGetApp().em_unit()) * after first whole Mainframe updating/layouting */ - const int list_min_height = 35 * wxGetApp().em_unit(); + const int list_min_height = 20 * wxGetApp().em_unit(); if (this->GetMinSize().GetY() > list_min_height) this->SetMinSize(wxSize(-1, list_min_height)); } @@ -274,7 +274,7 @@ 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 (15 * wxGetApp().em_unit()) after first whole Mainframe updating/layouting + * 2. change it to the normal min value (20 * wxGetApp().em_unit()) after first whole Mainframe updating/layouting */ SetMinSize(wxSize(-1, 3000));