Fix resizable Settings-Panel for change in window size. [CURA-6054]

This commit is contained in:
Remco Burema 2019-01-11 17:32:15 +01:00
parent ff79e91686
commit 7b3cf6be64

View File

@ -77,7 +77,12 @@ Item
target: UM.Preferences
onPreferenceChanged:
{
customPrintSetup.height = UM.Preferences.getValue("view/settings_list_height");
customPrintSetup.height =
Math.min
(
UM.Preferences.getValue("view/settings_list_height"),
base.height - (customPrintSetup.mapToItem(null, 0, 0).y + buttonRow.height)
);
}
}
visible: currentModeIndex == PrintSetupSelectorContents.Mode.Custom