Verified Commit d1fdf677 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/systemtray: use the minimum size to calculate `cellWidth`

hiddenTasksView.availableWidth sometimes can be smaller than
parent fb7f201f
Pipeline #193389 passed with stage
in 6 minutes and 7 seconds
......@@ -36,7 +36,7 @@ PlasmaComponents3.ScrollView {
readonly property int minimumRows: 4
readonly property int minimumColumns: 4
cellWidth: Math.floor(popup.Layout.minimumWidth / minimumRows)
cellWidth: Math.floor(Math.min(hiddenTasksView.availableWidth, popup.Layout.minimumWidth) / minimumRows)
cellHeight: Math.floor(popup.Layout.minimumHeight / minimumColumns)
currentIndex: -1
Supports Markdown
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