From 1913e97bf209ab1015cc7f6683624e020ba5ec33 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 16 Jan 2021 17:54:27 -0800 Subject: mobile/statistics: fix layout warning The filler element was placed incorrectly (in a position already used) and worse the logic for its sizing was wrong. This gets rid of a warning and creates the intended layout. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/StatisticsPage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/StatisticsPage.qml b/mobile-widgets/qml/StatisticsPage.qml index 72a50602f..7ad70271e 100644 --- a/mobile-widgets/qml/StatisticsPage.qml +++ b/mobile-widgets/qml/StatisticsPage.qml @@ -193,10 +193,10 @@ Kirigami.Page { onClicked: chartTypePopup.open() } Item { - Layout.column: wide ? 0 : 1 + Layout.column: wide ? 0 : 2 Layout.row: wide ? 6 : 2 Layout.preferredHeight: wide ? parent.height - Kirigami.Units.gridUnit * 16 : Kirigami.Units.gridUnit - Layout.preferredWidth: wide ? parent.width - i1.implicitWidt - i2.implicitWidt - i3.implicitWidt - i4.implicitWidth : Kirigami.Units.gridUnit + Layout.fillWidth: wide ? false : true // just used for spacing } StatsView { -- cgit v1.2.3-70-g09d2