mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
7ffc619f4c
commit
783f9ee565
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue