mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-09-01 22:41:51 -06:00
Merge pull request #5150 from Ultimaker/CURA-6054-2_fix_resize_panel_on_window_change
Fix resizable Settings-Panel for change in window size. [CURA-6054]
This commit is contained in:
commit
0ecd00fa1f
1 changed files with 6 additions and 1 deletions
|
@ -77,7 +77,12 @@ Item
|
||||||
target: UM.Preferences
|
target: UM.Preferences
|
||||||
onPreferenceChanged:
|
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 + UM.Theme.getSize("default_margin").height)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
visible: currentModeIndex == PrintSetupSelectorContents.Mode.Custom
|
visible: currentModeIndex == PrintSetupSelectorContents.Mode.Custom
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue