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>
This commit is contained in:
Dirk Hohndel 2021-01-16 17:54:27 -08:00
parent a2bfeb0743
commit 1913e97bf2

View file

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