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

applets/systemtray: fix the cell size to accommodate more tasks in a row

After the system tray popup is resized, the grid view should behave like
Kickoff to show more tasks in a row.
parent 871d6104
Pipeline #190602 passed with stage
in 6 minutes and 39 seconds
......@@ -33,11 +33,11 @@ PlasmaComponents3.ScrollView {
GridView {
id: hiddenTasks
readonly property int rows: 4
readonly property int columns: 4
readonly property int minimumRows: 4
readonly property int minimumColumns: 4
cellWidth: Math.floor(hiddenTasks.width / hiddenTasks.columns)
cellHeight: Math.floor(hiddenTasks.height / hiddenTasks.rows)
cellWidth: Math.floor(popup.Layout.minimumWidth / minimumRows)
cellHeight: Math.floor(popup.Layout.minimumHeight / minimumColumns)
currentIndex: -1
highlight: PlasmaExtras.Highlight {}
......
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