QML UI: don't explicitly position view

Instead have the view follow the currentItem.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-03-18 17:00:07 -07:00
parent 7ffc619f4c
commit 783f9ee565

View file

@ -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