mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +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) {
|
function showDiveIndex(index) {
|
||||||
currentIndex = index;
|
currentIndex = index;
|
||||||
diveDetailsListView.positionViewAtIndex(index, ListView.Beginning);
|
//diveDetailsListView.positionViewAtIndex(index, ListView.End);
|
||||||
}
|
}
|
||||||
|
|
||||||
function endEditMode() {
|
function endEditMode() {
|
||||||
|
@ -186,6 +186,7 @@ Kirigami.Page {
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
maximumFlickVelocity: parent.width * 5
|
maximumFlickVelocity: parent.width * 5
|
||||||
orientation: ListView.Horizontal
|
orientation: ListView.Horizontal
|
||||||
|
highlightFollowsCurrentItem: true
|
||||||
focus: true
|
focus: true
|
||||||
clip: false
|
clip: false
|
||||||
snapMode: ListView.SnapOneItem
|
snapMode: ListView.SnapOneItem
|
||||||
|
|
Loading…
Add table
Reference in a new issue