Fix last row behavior for widgets
This commit is contained in:
parent
3e45c3311e
commit
1097159b8d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue