Context menu offset in Responsive Design Mode
Categories
(DevTools :: Responsive Design Mode, defect)
Tracking
(Not tracked)
People
(Reporter: pacoalamosal, Unassigned)
Details
Attachments
(1 file)
(deleted),
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Steps to reproduce:
- Enter Responsive Design Mode on any website.
- Select any of the Device presets from the Devices dropdown menu.
- Right click anywhere on the website viewport.
Tested under the following system:
OS: Ubuntu 21.10 64-bit
GNOME 40.4.0
Wayland windowing system
Latest updates installed
Actual results:
The secondary click context menu appears with its horizontal and vertical positions dramatically offset to the right and downwards. Its horizontal position is bound by the display boundary but vertically the offset remains constant and the menu may appear below the bottom edge of the display and thus not be visible.
The issue occurs regardless of the state of zoom, viewport rotation, or touch simulation. It becomes less dramatic as the aspect ratio of the selected Device preset approaches the actual aspect ratio of the display output, and disappears completely when both match. In a 1080p 16:9 display, the issue disappears under the 720p, 1080p and 4k presets.
The issue can be circumvented by switching from a Device preset to Responsive mode, even if the viewport dimensions remain unchanged. However, if any preset is selected again the issue recurs.
The following are reports of similar or identical issues:
https://bugzilla.mozilla.org/show_bug.cgi?id=1461796
https://bugzilla.mozilla.org/show_bug.cgi?id=1488991
https://bugzilla.mozilla.org/show_bug.cgi?id=1556962
However, they all appear to have been resolved in previous versions of Firefox and I could not find one for the current version.
Expected results:
The context menu should appear with its top-left position aligned to the location of the click.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Yeah this slipped on 99 but should be fixed in beta and nightly, can you confirm?
Reporter | ||
Comment 3•3 years ago
|
||
I can confirm it is resolved on beta and nightly. Thank you very much.
Description
•