Give the default settings pannel a max-height

CURA-9793
This commit is contained in:
c.lamboo 2022-12-15 13:37:28 +01:00
parent eab43f038a
commit f6d18266e6

View file

@ -69,7 +69,8 @@ Item
visible: currentModeIndex == PrintSetupSelectorContents.Mode.Recommended
height: {
const height = base.height - (customPrintSetup.mapToItem(null, 0, 0).y + buttonRow.height + UM.Theme.getSize("default_margin").height);
return Math.min(implicitHeight, height);
const maxHeight = UM.Preferences.getValue("view/settings_list_height");
return Math.min(implicitHeight, height, maxHeight);
}
function onModeChanged()