Fix a crash in the weather view

This commit is contained in:
Michael Zanetti 2021-04-27 14:34:47 +02:00
parent 06688c2cd2
commit aaee7a8c53

View File

@ -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