From 7304226aca377c2a109f9bf6e92b0d8793793c72 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 24 Mar 2021 16:44:58 +0100 Subject: [PATCH] Increase reliance on anchors instead of width-height. CURA-8014 --- .../qml/WelcomePages/WhatsNewContent.qml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/qml/WelcomePages/WhatsNewContent.qml b/resources/qml/WelcomePages/WhatsNewContent.qml index a50f08ab4f..ca8c758620 100644 --- a/resources/qml/WelcomePages/WhatsNewContent.qml +++ b/resources/qml/WelcomePages/WhatsNewContent.qml @@ -45,12 +45,12 @@ Item { top: topSpacer.bottom bottom: whatsNewDots.top + left: parent.left + right: parent.right horizontalCenter: parent.horizontalCenter - margins: UM.Theme.getSize("default_margin").width + margins: UM.Theme.getSize("default_margin").width * 2 } - height: parent.height - (UM.Theme.getSize("default_margin").height * 2) - width: parent.width - (UM.Theme.getSize("default_margin").width * 2) color: UM.Theme.getColor("viewport_overlay") StackLayout @@ -60,11 +60,11 @@ Item anchors { top: parent.top + topMargin: UM.Theme.getSize("default_margin").width horizontalCenter: parent.horizontalCenter - margins: UM.Theme.getSize("default_margin").width / 2 } - height: parent.height - (UM.Theme.getSize("default_margin").height * 2) - width: parent.width - (UM.Theme.getSize("default_margin").width * 2) + height: parent.height + width: parent.width currentIndex: whatsNewDots.currentIndex @@ -72,9 +72,9 @@ Item { anchors { - horizontalCenter: parent.horizontalCenter top: parent.top - margins: UM.Theme.getSize("default_margin").width / 2 + topMargin: UM.Theme.getSize("default_margin").width / 2 + horizontalCenter: parent.horizontalCenter } model: manager.subpageCount @@ -83,9 +83,9 @@ Item { anchors { - horizontalCenter: parent.horizontalCenter top: parent.top - margins: UM.Theme.getSize("default_margin").width / 2 + topMargin: UM.Theme.getSize("default_margin").width / 2 + horizontalCenter: parent.horizontalCenter } color: UM.Theme.getColor("viewport_overlay") @@ -100,7 +100,7 @@ Item topMargin: UM.Theme.getSize("default_margin").width } width: parent.width - (UM.Theme.getSize("default_margin").width * 2) - height: (parent.height - (UM.Theme.getSize("default_margin").width * 2)) * 0.8 + height: (parent.height - UM.Theme.getSize("default_margin").height) * 0.75 fillMode: Image.PreserveAspectFit source: manager.getSubpageImageSource(index)