From 8d8de1c6f486506d1257c2337195e678c8a0956e Mon Sep 17 00:00:00 2001 From: casper Date: Mon, 29 Nov 2021 12:34:25 +0100 Subject: [PATCH] Move static anchor properties inside the `TertiaryButton` element CURA-8564 --- plugins/Marketplace/resources/qml/OnboardBanner.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/Marketplace/resources/qml/OnboardBanner.qml b/plugins/Marketplace/resources/qml/OnboardBanner.qml index 148a279cd2..62f6b96356 100644 --- a/plugins/Marketplace/resources/qml/OnboardBanner.qml +++ b/plugins/Marketplace/resources/qml/OnboardBanner.qml @@ -87,16 +87,12 @@ Rectangle if (line.implicitWidth + readMoreButton.width + UM.Theme.getSize("default_margin").width > width) { // If it does place it after the body text - readMoreButton.anchors.left = infoText.left; - readMoreButton.anchors.bottom = infoText.bottom; readMoreButton.anchors.bottomMargin = -(fontMetrics.height + UM.Theme.getSize("thin_margin").height); readMoreButton.anchors.leftMargin = 0; } else { // Otherwise place it under the text - readMoreButton.anchors.left = infoText.left; - readMoreButton.anchors.bottom = infoText.bottom; readMoreButton.anchors.leftMargin = line.implicitWidth + UM.Theme.getSize("default_margin").width; readMoreButton.anchors.bottomMargin = 0; } @@ -114,6 +110,8 @@ Rectangle { visible: readMoreUrl !== "" id: readMoreButton + anchors.left: infoText.left + anchors.bottom: infoText.bottom text: "Learn More" textFont: UM.Theme.getFont("default") textColor: infoText.color