From 2f75e299f5129dd4890eec1abf7193a74cbe5d8e Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Tue, 21 Sep 2021 17:31:37 +0200 Subject: [PATCH] Set the width in the parent item Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713127038. CURA-8421 --- resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml b/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml index 326c0c79e8..3a5e24ff97 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationSwitcher.qml @@ -11,17 +11,14 @@ import Cura 1.1 as Cura Item { id: applicationSwitcherWidget - width: applicationSwitcherButton.width + width: Math.round(0.5 * UM.Theme.getSize("main_window_header").height) height: width Button { id: applicationSwitcherButton - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - width: Math.round(0.5 * UM.Theme.getSize("main_window_header").height) - height: width + anchors.fill: parent background: Item {