Skip to content

Commit 7edb2eb

Browse files
committed
Fix the bottom browser menu anchoring
1 parent 36f8261 commit 7edb2eb

File tree

1 file changed

+1
-1
lines changed
  • android-design-system/design-system/src/main/java/com/duckduckgo/common/ui/menu

1 file changed

+1
-1
lines changed

android-design-system/design-system/src/main/java/com/duckduckgo/common/ui/menu/PopupMenu.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ open class PopupMenu(
142142
val y = if (anchorMoreToTopOfScreen) {
143143
anchorLocation[1] + anchorView.height + 4.toDp()
144144
} else {
145-
screenHeight - anchorLocation[1] + 4.toDp()
145+
screenHeight - anchorLocation[1] - anchorView.height + 4.toDp()
146146
}
147147

148148
showAtLocation(rootView, gravity, x, y)

0 commit comments

Comments
 (0)