mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-16 19:40:41 +01:00
fixing the popup anchor placement at home screen icons
This commit is contained in:
parent
21a1367fc2
commit
ad25e0bc2a
@ -296,8 +296,10 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
mLongPressedIcon = gridItem
|
||||
val anchorY = if (isOnAllAppsFragment || gridItem.type == ITEM_TYPE_WIDGET) {
|
||||
y
|
||||
} else {
|
||||
} else if (gridItem.top == ROW_COUNT - 1) {
|
||||
home_screen_grid.sideMargins.top + (gridItem.top * home_screen_grid.rowHeight.toFloat())
|
||||
} else {
|
||||
(gridItem.top * home_screen_grid.rowHeight.toFloat())
|
||||
}
|
||||
|
||||
home_screen_popup_menu_anchor.x = x
|
||||
|
Loading…
x
Reference in New Issue
Block a user