homescreen: Fix negative cache buffer on GridViewAppDrawer

This commit is contained in:
Devin Lin 2021-12-25 00:00:27 -05:00
parent 97e1e4d53c
commit cb30fd1a06

View file

@ -60,7 +60,8 @@ AbstractAppDrawer {
property int columns: Math.floor(root.contentWidth / cellWidth)
property int rows: Math.ceil(model.count / columns)
cacheBuffer: rows * cellHeight
cacheBuffer: Math.max(0, rows * cellHeight)
model: HomeScreenComponents.ApplicationListModel