mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3487612337
commit
c00804eff6
1 changed files with 10 additions and 0 deletions
|
@ -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: "*"
|
||||
|
|
Loading…
Add table
Reference in a new issue