From b4c4e294f3f1dba3c469a5b679fd56a2249a667f Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 22 Mar 2021 23:47:50 +0100 Subject: [PATCH] Fix awning control spacing --- nymea-app/ui/devicepages/AwningThingPage.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nymea-app/ui/devicepages/AwningThingPage.qml b/nymea-app/ui/devicepages/AwningThingPage.qml index 518c2673..aae4ca39 100644 --- a/nymea-app/ui/devicepages/AwningThingPage.qml +++ b/nymea-app/ui/devicepages/AwningThingPage.qml @@ -68,14 +68,14 @@ ThingPageBase { property int minimumWidth: app.iconSize * 2.7 * 3 property int minimumHeight: app.iconSize * 4.5 - Column { + ColumnLayout { anchors.centerIn: parent width: parent.width spacing: app.margins Slider { id: percentageSlider - width: parent.width + Layout.fillWidth: true from: 0 to: 100 stepSize: 1 @@ -108,8 +108,7 @@ ThingPageBase { id: shutterControls thing: root.thing invert: true - anchors.horizontalCenter: parent.horizontalCenter - spacing: (parent.width - app.iconSize*2*children.length) / (children.length - 1) + Layout.fillWidth: true } } }