Fix last row behavior for widgets

This commit is contained in:
Ensar Sarajčić 2023-07-17 13:03:01 +02:00
parent 3e45c3311e
commit 1097159b8d
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
if (rect.top < 0) {
rect.bottom -= rect.top
rect.top = 0
} else if (rect.bottom > rowCount - 1) {
} else if (rect.bottom > rowCount - 2) {
val diff = rect.bottom - rowCount + 2
rect.bottom -= diff
rect.top -= diff