Commit 649b50cd authored by Nate Graham's avatar Nate Graham 🔩

[applets/systemtray] Fix size of grid on really thick panels

Now the grid can have more than 2 rows/columns on really thick panels,
just like in Plasma 5.19 and earlier.

BUG: 427251
FIXED-IN: 5.20
parent bd2fcb05
......@@ -49,7 +49,7 @@ MouseArea {
readonly property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property bool autoSize: plasmoid.configuration.scaleIconsToFit
readonly property int cellThickness: root.vertical ? root.width : root.height
readonly property int rowsOrColumns: autoSize || cellThickness <= smallIconSize * 2 ? 1 : 2
readonly property int rowsOrColumns: autoSize ? 1 : Math.max(1, Math.floor(cellThickness / smallIconSize))
property alias expanded: dialog.visible
property Item activeApplet
property alias visibleLayout: tasksGrid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment