From aaee7a8c534b284886eaf251db995d73b07fd7d1 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 27 Apr 2021 14:34:47 +0200 Subject: [PATCH] Fix a crash in the weather view --- nymea-app/ui/customviews/WeatherView.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nymea-app/ui/customviews/WeatherView.qml b/nymea-app/ui/customviews/WeatherView.qml index afb36504..c0579744 100644 --- a/nymea-app/ui/customviews/WeatherView.qml +++ b/nymea-app/ui/customviews/WeatherView.qml @@ -60,12 +60,13 @@ Item { RowLayout { Layout.fillWidth: true Layout.preferredHeight: mainImageSize + spacing: Style.margins property int mainImageSize: Style.iconSize * 2 Item { Layout.fillWidth: true - Layout.preferredWidth: (parent.width - parent.mainImageSize) / 2 + Layout.preferredWidth: (parent.width - parent.mainImageSize) / 2 - Style.margins GridLayout { anchors.centerIn: parent @@ -105,7 +106,7 @@ Item { Item { Layout.fillWidth: true - Layout.preferredWidth: (parent.width - parent.mainImageSize) / 2 + Layout.preferredWidth: (parent.width - parent.mainImageSize) / 2 - Style.margins GridLayout { columns: 2 anchors.centerIn: parent