From 5035caf3efd121e6ac0f89453bc0126fbadcba71 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 8 Feb 2015 12:03:43 +0100 Subject: [PATCH] Remove StrictlyEnforceRange This causes nasty effects in the view --- src/qml/danbooruimageview.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/qml/danbooruimageview.qml b/src/qml/danbooruimageview.qml index 02ca708..50f4245 100644 --- a/src/qml/danbooruimageview.qml +++ b/src/qml/danbooruimageview.qml @@ -46,8 +46,6 @@ Rectangle { Rectangle { width: grid.cellWidth; height: grid.cellHeight color: "lightsteelblue"; radius: 5 - x: grid.currentItem.x - y: grid.currentItem.y } } @@ -191,16 +189,17 @@ Rectangle { flow: GridView.FlowLeftToRight anchors.fill: parent + clip: true highlight: highlight highlightFollowsCurrentItem: true - highlightRangeMode: GridView.StrictlyEnforceRange + highlightRangeMode: GridView.ApplyRange model: danbooruModel delegate: viewDelegate focus: true - Component.onCompleted: { currentIndex = 0} + Component.onCompleted: { currentIndex = -1; forceActiveFocus()} onAtYEndChanged: { if (grid.atYEnd) {