Add an extra check to enforce min height of printSetupSelector

CURA-6478
This commit is contained in:
Jaime van Kessel 2019-04-29 10:49:33 +02:00
parent db1a5ec8c0
commit 79fbe12e92

View file

@ -201,7 +201,13 @@ Item
{ {
h -= mouse_absolute_y - base.height; h -= mouse_absolute_y - base.height;
} }
// Enforce a minimum size (again).
// This is a bit of a hackish way to do it, but we've seen some ocasional reports that the size
// could get below the the minimum height.
if(h < absoluteMinimumHeight)
{
h = absoluteMinimumHeight;
}
UM.Preferences.setValue("view/settings_list_height", h); UM.Preferences.setValue("view/settings_list_height", h);
} }
} }