From 7d36d988b9dc0e713a5d2352299f26334bf7981f Mon Sep 17 00:00:00 2001 From: reionwong Date: Wed, 27 Oct 2021 20:02:58 +0800 Subject: [PATCH] Fix keyboard positioning --- qml/Dialogs/CreateFolderDialog.qml | 2 ++ qml/FolderGridView.qml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/qml/Dialogs/CreateFolderDialog.qml b/qml/Dialogs/CreateFolderDialog.qml index 1b4069a..8f0d2f0 100644 --- a/qml/Dialogs/CreateFolderDialog.qml +++ b/qml/Dialogs/CreateFolderDialog.qml @@ -75,6 +75,8 @@ Window { } RowLayout { + spacing: FishUI.Units.largeSpacing + Button { text: qsTr("Cancel") Layout.fillWidth: true diff --git a/qml/FolderGridView.qml b/qml/FolderGridView.qml index 0c9c600..39a2961 100644 --- a/qml/FolderGridView.qml +++ b/qml/FolderGridView.qml @@ -70,6 +70,10 @@ GridView { positioner.reset() } + onCountChanged: { + positioner.reset() + } + function effectiveNavDirection(flow, layoutDirection, direction) { if (direction === Qt.LeftArrow) { if (flow === GridView.FlowLeftToRight) {