mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Mobile QML UI: wideScreen property change
See also 15cdcdbc6
. There, we introduced the wideScreen (set to true)
to evade a (cosmetic) bug in (most likely) Kirigami. The top dive
was partially obscured on the start of the app. And by setting the
wideScreen to true, the application header became of a fixed height.
Numerous changes further in Kirigami, we can now set this property to
false. This results in a correctly displayed divelist at the start of
the app, and *also* an application header that correcly hides itself
when scrolling up, and displays itself again when scrolling down. So,
a behavior that is common to, for example, mobile brouwsers.
This all said. I still believe this is a workround for strange behavior.
In fact, we should not need to set this wideScreen property at all,
and Kirigami should behave correct in all cases (true, false, unset
at our end). It behaves correctly when set to true or false, but
still displays a partially hidden top item in the dive list when
unset.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
cd0b911fe8
commit
76a7c860f1
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ Kirigami.ApplicationWindow {
|
|||
id: rootItem
|
||||
title: qsTr("Subsurface-mobile")
|
||||
reachableModeEnabled: false // while it's a good idea, it seems to confuse more than help
|
||||
wideScreen: true // workaround for probably Kirigami bug. See commit.
|
||||
wideScreen: false // workaround for probably Kirigami bug. See commits.
|
||||
header: Kirigami.ApplicationHeader {
|
||||
minimumHeight: 0
|
||||
preferredHeight: Math.round(Kirigami.Units.gridUnit * (Qt.platform.os == "ios" ? 2 : 1.5))
|
||||
|
|
Loading…
Reference in a new issue