diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-01-16 17:54:27 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-19 12:42:47 -0800 |
commit | 1913e97bf209ab1015cc7f6683624e020ba5ec33 (patch) | |
tree | 857e4bfbd21ab2f511b3b7883568690509f985a5 /mobile-widgets/qml/StatisticsPage.qml | |
parent | a2bfeb0743a458609b250eb8c2704172f101e4e6 (diff) | |
download | subsurface-1913e97bf209ab1015cc7f6683624e020ba5ec33.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/StatisticsPage.qml')
-rw-r--r-- | mobile-widgets/qml/StatisticsPage.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |