From 0ff861b977cdb3cf424b40c3ff13ca9efda472c3 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Mon, 10 May 2021 10:22:33 +0800 Subject: [PATCH] Change icon size, reset positioner --- qml/FolderGridView.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/FolderGridView.qml b/qml/FolderGridView.qml index 091ca27..8cb121a 100644 --- a/qml/FolderGridView.qml +++ b/qml/FolderGridView.qml @@ -46,6 +46,11 @@ GridView { signal keyPress(var event) + onIconSizeChanged: { + // 图标大小改变时需要重置状态,否则选中定位不准确 + positioner.reset() + } + function effectiveNavDirection(flow, layoutDirection, direction) { if (direction === Qt.LeftArrow) { if (flow === GridView.FlowLeftToRight) {