diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml index e46477994..b18a8507c 100644 --- a/applets/systemtray/package/contents/ui/main.qml +++ b/applets/systemtray/package/contents/ui/main.qml @@ -161,6 +161,7 @@ MouseArea { } } readonly property int autoSizeCellLength: thickness / rowsOrColumns + readonly property int smallSizeCellLength: root.smallIconSize + units.smallSpacing readonly property int totalLength: root.vertical ? cellHeight * Math.round(count / rowsOrColumns) : cellWidth * Math.round(count / rowsOrColumns) @@ -172,8 +173,8 @@ MouseArea { implicitHeight: root.vertical ? totalLength : root.height implicitWidth: !root.vertical ? totalLength : root.width - cellHeight: root.vertical && !root.autoSize ? root.smallIconSize + units.smallSpacing : autoSizeCellLength - cellWidth: !root.vertical && !root.autoSize ? root.smallIconSize + units.smallSpacing : autoSizeCellLength + cellHeight: root.vertical && !root.autoSize ? smallSizeCellLength : autoSizeCellLength + cellWidth: !root.vertical && !root.autoSize ? smallSizeCellLength : autoSizeCellLength model: PlasmaCore.SortFilterModel { sourceModel: plasmoid.nativeInterface.systemTrayModel