fixing the popup anchor placement at home screen icons

This commit is contained in:
tibbi 2022-10-01 22:17:43 +02:00
parent 21a1367fc2
commit ad25e0bc2a
1 changed files with 3 additions and 1 deletions

View File

@ -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