From c73f815b6964aee7c9eedf97d20e33c0edef8085 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Tue, 21 Sep 2021 17:32:06 +0200 Subject: [PATCH] Use anchors instead of setting the width Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713119985. CURA-8421 --- resources/qml/ApplicationSwitcher/ApplicationButton.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationButton.qml b/resources/qml/ApplicationSwitcher/ApplicationButton.qml index dd3195b268..153a8996b9 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationButton.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationButton.qml @@ -35,7 +35,9 @@ Button Column { id: applicationButtonContent - anchors.centerIn: parent + anchors.left: parent.left + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter UM.RecolorImage { @@ -87,9 +89,9 @@ Button { id: applicationDisplayName - anchors.horizontalCenter: parent.horizontalCenter + anchors.left: parent.left + anchors.right: parent.right - width: base.width - UM.Theme.getSize("default_margin").width height: base.height - applicationIcon.height - 2 * UM.Theme.getSize("default_margin").width // Account for the top and bottom margins horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter