From bbfa93c9a76bcba2b837f9a0e1295745cb23ce9c Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Mon, 28 Jun 2021 14:48:54 +0200 Subject: [PATCH] Make the machineSelection header adjust its width Whenever the window gets resized, the machineSelector header will now change it size, similar to the configurationSelector next to it. CURA-8013 --- plugins/PrepareStage/PrepareMenu.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml index 87d7c5f35c..3a62daff29 100644 --- a/plugins/PrepareStage/PrepareMenu.qml +++ b/plugins/PrepareStage/PrepareMenu.qml @@ -50,8 +50,7 @@ Item { id: machineSelection headerCornerSide: Cura.RoundedRectangle.Direction.Left - Layout.minimumWidth: UM.Theme.getSize("machine_selector_widget").width - Layout.maximumWidth: UM.Theme.getSize("machine_selector_widget").width + Layout.preferredWidth: Math.round((itemRow.width - printSetupSelectorItem.width - UM.Theme.getSize("default_lining").width) * 1 / 3 - UM.Theme.getSize("default_lining").width) Layout.fillWidth: true Layout.fillHeight: true } @@ -69,7 +68,7 @@ Item id: printerSetup Layout.fillHeight: true Layout.fillWidth: true - Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelectorItem.width - 2 * UM.Theme.getSize("default_lining").width + Layout.preferredWidth: Math.round((itemRow.width - printSetupSelectorItem.width - UM.Theme.getSize("default_lining").width) * 2 / 3 - UM.Theme.getSize("default_lining").width) } // Separator line