|
@@ -14,6 +14,8 @@ Item
|
|
|
{
|
|
|
id: content
|
|
|
|
|
|
+ property int absoluteMinimumHeight: 200 * screenScaleFactor
|
|
|
+
|
|
|
width: UM.Theme.getSize("print_setup_widget").width - 2 * UM.Theme.getSize("default_margin").width
|
|
|
height: contents.height + buttonRow.height
|
|
|
|
|
@@ -86,8 +88,14 @@ Item
|
|
|
Math.min
|
|
|
(
|
|
|
UM.Preferences.getValue("view/settings_list_height"),
|
|
|
- base.height - (customPrintSetup.mapToItem(null, 0, 0).y + buttonRow.height + UM.Theme.getSize("default_margin").height)
|
|
|
+ Math.max
|
|
|
+ (
|
|
|
+ absoluteMinimumHeight,
|
|
|
+ base.height - (customPrintSetup.mapToItem(null, 0, 0).y + buttonRow.height + UM.Theme.getSize("default_margin").height)
|
|
|
+ )
|
|
|
);
|
|
|
+
|
|
|
+ updateDragPosition();
|
|
|
}
|
|
|
}
|
|
|
visible: currentModeIndex == PrintSetupSelectorContents.Mode.Custom
|
|
@@ -175,9 +183,9 @@ Item
|
|
|
// position of mouse relative to dropdown align vertical centre of mouse area to cursor
|
|
|
// v------------------------------v v------------v
|
|
|
var h = mouseY + buttonRow.y + content.y - height / 2 | 0;
|
|
|
- if(h < 200 * screenScaleFactor) //Enforce a minimum size.
|
|
|
+ if(h < absoluteMinimumHeight) //Enforce a minimum size.
|
|
|
{
|
|
|
- h = 200 * screenScaleFactor;
|
|
|
+ h = absoluteMinimumHeight;
|
|
|
}
|
|
|
|
|
|
//Absolute mouse Y position in the window, to prevent it from going outside the window.
|