mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-30 01:54:40 +08:00
Decrease min height for ObjectList (related to #5462)
This commit is contained in:
parent
240dc8b697
commit
8849aa77dc
@ -261,10 +261,10 @@ ObjectList::~ObjectList()
|
|||||||
void ObjectList::set_min_height()
|
void ObjectList::set_min_height()
|
||||||
{
|
{
|
||||||
/* Temporary workaround for the correct behavior of the Scrolled sidebar panel:
|
/* 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
|
* 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)
|
if (this->GetMinSize().GetY() > list_min_height)
|
||||||
this->SetMinSize(wxSize(-1, 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:
|
/* Temporary workaround for the correct behavior of the Scrolled sidebar panel:
|
||||||
* 1. set a height of the list to some big value
|
* 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));
|
SetMinSize(wxSize(-1, 3000));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user