summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-05 12:14:57 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-05 13:38:32 -0700
commitc00804eff6af01bc005df6795420e40766429f67 (patch)
tree0333b9fd5e90533669d2d2132c3c3af1714303f9 /mobile-widgets
parent3487612337ef0308e3f2129a3193a0f65ac9691c (diff)
downloadsubsurface-c00804eff6af01bc005df6795420e40766429f67.tar.gz
QML UI: always start edit at top of page
When starting to edit / add a dive, the Flickable needs to be positioned at the top of the page, not the last position shown. For clarity I'll do the re-indentation in the next commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index b1357ef55..3c17641c6 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -84,6 +84,7 @@ Kirigami.Page {
Transition {
from: "view"
to: "*"
+ ParallelAnimation {
SequentialAnimation {
NumberAnimation {
target: detailsEditFlickable
@@ -100,6 +101,15 @@ Kirigami.Page {
easing.type: Easing.InOutQuad
}
}
+
+ NumberAnimation {
+ target: detailsEditFlickable
+ property: "contentY"
+ to: 0
+ duration: 200
+ easing.type: Easing.InOutQuad
+ }
+ }
},
Transition {
from: "*"