From 79fbe12e9203eb52f58217591cd5d097e8b3797c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 29 Apr 2019 10:49:33 +0200 Subject: [PATCH] Add an extra check to enforce min height of printSetupSelector CURA-6478 --- .../qml/PrintSetupSelector/PrintSetupSelectorContents.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml b/resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml index b1e8cc05d8..b377d2c96b 100644 --- a/resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml +++ b/resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml @@ -201,7 +201,13 @@ Item { 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); } }