From 77357af0084b745fc47cc24de6321408290bd8f7 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 29 Jul 2020 19:33:32 -0600 Subject: [PATCH] [applets/systemtray] Fix icon hitboxes being too big in 2 row/column view They were always calculating the size as if there was one row or column, even if there were actually two. BUG: 424812 --- applets/systemtray/package/contents/ui/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml index 18485a171..a39ecb328 100644 --- a/applets/systemtray/package/contents/ui/main.qml +++ b/applets/systemtray/package/contents/ui/main.qml @@ -43,7 +43,7 @@ MouseArea { // Used only by AbstractItem, but it's easiest to keep it here since it // uses dimensions from this item to calculate the final value - readonly property int itemSize: autoSize ? units.roundToIconSize(Math.min(Math.min(width, height), units.iconSizes.enormous)) : smallIconSize + readonly property int itemSize: autoSize ? units.roundToIconSize(Math.min(Math.min(width / rowsOrColumns, height / rowsOrColumns), units.iconSizes.enormous)) : smallIconSize // The rest are derived properties; do not modify readonly property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical