Open Bug 1866147 Opened 1 year ago Updated 4 months ago

[Wayland] right click context menu gets cut when below about half screen

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 120
defect

Tracking

()

UNCONFIRMED

People

(Reporter: correosinuso23, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

(this is on wayland with fractional scaling at 1.25)
right click around the middle of the screen

Actual results:

sometimes the context menu gets cut at the bottom
it cuts one or more elements of the menu

Expected results:

either show the corresponding elements or show an arrow to scroll to them

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3
Summary: right click context menu gets cut when below about half screen → [Wayland] right click context menu gets cut when below about half screen

So I came back to test the waters on Linux again and I've noticed 2 things about this bug... I'm not so sure this is a problem of gtk fractional scaling?

First I noticed this happens on kde Plasma, both 5 & 6 but not on Gnome (at least on 46), don't know about other DEs, on Gnome whilst sometimes the context menus do some weird things they still show the arrow to expand, instead of just cutting out
Also I've noticed this does not happen on Firefox ESR (I noticed this whilst testing Floorp, looking why would this be the case I ended up learning about ESR)

Lastly, I found a workaround: setting widget.gtk.native-context-menus to true in the about:config fixes this problem.

widget.gtk.native-context-menus has a lot of other problems, so it doesn't really fixes this one. But I want to confirm this seems to be a problem in KDE (or QT) specifically, both gnome and cosmic doesn't have this problem.. at least not in this way.

On Gnome and Cosmic the problem somewhat happens but in a different way, the menus auto adjust to the smaller size and then go back to the supposed size once you hover on one of the arrows (top or bottom), in KDE on the other side, the menu is always expanded but (about) half of it is not rendered (you still can interact with the items in it).

I don't think this is entirely related to gtk fractional scaling tho, as OP commented, this used to not happen in ESR (it does happen now), did firefox had some changes in the way sub menus render for gnome? should this be brought up to KDE?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: