diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-03-18 17:00:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-18 17:05:45 -0700 |
commit | 783f9ee565adc1aaaa37cf1f2c50a9c591aca038 (patch) | |
tree | 6ae3cbaae9cdb291dd62fd7a85b4949e33d7aecf /mobile-widgets | |
parent | 7ffc619f4c6f714e72c08d2f80816fe27390f7c1 (diff) | |
download | subsurface-783f9ee565adc1aaaa37cf1f2c50a9c591aca038.tar.gz |
QML UI: don't explicitly position view
Instead have the view follow the currentItem.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 644aa715c..c58c75023 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -123,7 +123,7 @@ Kirigami.Page { function showDiveIndex(index) { currentIndex = index; - diveDetailsListView.positionViewAtIndex(index, ListView.Beginning); + //diveDetailsListView.positionViewAtIndex(index, ListView.End); } function endEditMode() { @@ -186,6 +186,7 @@ Kirigami.Page { boundsBehavior: Flickable.StopAtBounds maximumFlickVelocity: parent.width * 5 orientation: ListView.Horizontal + highlightFollowsCurrentItem: true focus: true clip: false snapMode: ListView.SnapOneItem |