From 3dec4e228b6c2f024beb44c2fb1661639b9d93cc Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 12 Aug 2021 15:48:58 +0200 Subject: [PATCH] Use leftpadding instead of binding anchors outside of siblings --- resources/qml/PrintSetupSelector/Custom/MenuButton.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/qml/PrintSetupSelector/Custom/MenuButton.qml b/resources/qml/PrintSetupSelector/Custom/MenuButton.qml index ffa6a68c9d..a012a56056 100644 --- a/resources/qml/PrintSetupSelector/Custom/MenuButton.qml +++ b/resources/qml/PrintSetupSelector/Custom/MenuButton.qml @@ -18,6 +18,7 @@ Button property string labelText: "" id: button hoverEnabled: true + leftPadding:UM.Theme.getSize("wide_margin").width background: Rectangle { @@ -45,8 +46,6 @@ Button text: button.text != "" ? replaceText(button.text) : replaceText(button.labelText) height: contentHeight verticalAlignment: Text.AlignVCenter - anchors.left: button.left - anchors.leftMargin: UM.Theme.getSize("wide_margin").width renderType: Text.NativeRendering font: UM.Theme.getFont("default") color: button.enabled ? UM.Theme.getColor("text") :UM.Theme.getColor("text_inactive")