Browse Source

Add an extra check to enforce min height of printSetupSelector

CURA-6478
Jaime van Kessel 5 years ago
parent
commit
79fbe12e92
1 changed files with 7 additions and 1 deletions
  1. 7 1
      resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml

+ 7 - 1
resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml

@@ -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);
                 }
                 }
             }
             }