From 845c0b40f03152423a14b45d9de07d8b28d34a4c Mon Sep 17 00:00:00 2001 From: cutefishd Date: Thu, 15 Apr 2021 10:34:32 +0800 Subject: [PATCH] Fix GridView extra space --- qml/FolderGridView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/FolderGridView.qml b/qml/FolderGridView.qml index 68b7bbc..65cd741 100644 --- a/qml/FolderGridView.qml +++ b/qml/FolderGridView.qml @@ -533,7 +533,7 @@ GridView { var extraSpacing = 0 if (availableColumns > 0) { var allColumnSize = availableColumns * cellSize - var extraSpace = Math.max(containerSize - allColumnSize, FishUI.Units.largeSpacing) + var extraSpace = Math.max(containerSize - allColumnSize, 0) extraSpacing = extraSpace / availableColumns } return Math.floor(extraSpacing)