Skip to content

Commit b608138

Browse files
committed
fix: align popup menu to top-left corner without offset
1 parent d004d5f commit b608138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/openipc/decoder/Decoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ private void createMenu(View menu) {
358358

359359
PopupWindow popup = new PopupWindow(layout, LinearLayout.LayoutParams.WRAP_CONTENT,
360360
LinearLayout.LayoutParams.WRAP_CONTENT, true);
361-
popup.showAtLocation(menu, Gravity.TOP | Gravity.START, 0, dp(20));
361+
popup.showAtLocation(menu, Gravity.TOP | Gravity.START, 0, 0);
362362

363363
// camera slot selector: horizontal row [1] [2] [3] [4]
364364
LinearLayout camRow = new LinearLayout(this);

0 commit comments

Comments
 (0)