mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-16 19:40:41 +01:00
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…
x
Reference in New Issue
Block a user