mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a2bfeb0743
commit
1913e97bf2
1 changed files with 2 additions and 2 deletions
|
@ -193,10 +193,10 @@ Kirigami.Page {
|
||||||
onClicked: chartTypePopup.open()
|
onClicked: chartTypePopup.open()
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
Layout.column: wide ? 0 : 1
|
Layout.column: wide ? 0 : 2
|
||||||
Layout.row: wide ? 6 : 2
|
Layout.row: wide ? 6 : 2
|
||||||
Layout.preferredHeight: wide ? parent.height - Kirigami.Units.gridUnit * 16 : Kirigami.Units.gridUnit
|
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
|
// just used for spacing
|
||||||
}
|
}
|
||||||
StatsView {
|
StatsView {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue