mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
homescreen: Fix negative cache buffer on GridViewAppDrawer
This commit is contained in:
parent
97e1e4d53c
commit
cb30fd1a06
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ AbstractAppDrawer {
|
||||||
|
|
||||||
property int columns: Math.floor(root.contentWidth / cellWidth)
|
property int columns: Math.floor(root.contentWidth / cellWidth)
|
||||||
property int rows: Math.ceil(model.count / columns)
|
property int rows: Math.ceil(model.count / columns)
|
||||||
cacheBuffer: rows * cellHeight
|
|
||||||
|
cacheBuffer: Math.max(0, rows * cellHeight)
|
||||||
|
|
||||||
model: HomeScreenComponents.ApplicationListModel
|
model: HomeScreenComponents.ApplicationListModel
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue