Context menu position is wrong if Fenix is opened in split area on Android versions <= 10
Categories
(Fenix :: General, defect, P2)
Tracking
(Not tracked)
People
(Reporter: ekager, Unassigned)
References
()
Details
From github: https://github.com/mozilla-mobile/fenix/issues/16667.
Steps to reproduce
- Use split screen mode or popup mode of Galaxy
- Open Fenix at non-top-left of the screen
- Long-tap to select text
Expected behavior
The context menu for selected text should be near the selected text.
Actual behavior
The position is moved bottom-left than the expexted position in split screen mode.
In popup mode, it's more complicated. The position is seems right if Fenix is at near the top-left of the screen. However, moving to bottom left, the context menu becomes hidden. But moving to top-left, it's shown again.
Device information
- Android device: Samsung Galaxy Tab S5e, Android 10, One UI 2.5
- Fenix version: Today's Nightly (Nightly 201119 17:01 (Build #2015776587), AC: 68.0.20201119143053, b7e6ad09e, GV: 85.0a1-20201118041908, AS: 67.0.0)
Change performed by the Move to Bugzilla add-on.
I'm the original reporter, so, feel free to ask anything about the detail to me.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Emily (sorry) I think this is also a AC/Fenix bug, I suspect what's going on here is that the app doesn't account for the fact that the top of the activity is not the top of the screen and so the offset is wrong.
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Comment 3•1 year ago
|
||
Reopening and moving to Fenix component.
Comment 4•1 year ago
•
|
||
Android 10 or early doesn't have an API to get current window coordinate. AndroidX seems to use the reflection to get it. I need to check whether we can use same way.
Comment 5•1 year ago
|
||
Bug 1817924 fixed this issue for Android 11+, but we still want to track this bug for Android versions <= 10.
Description
•