Closed ryonakano closed 3 years ago
Whoa, that's wild. This must be a pretty recent change, and I can confirm it here.
Hmm, I also face this issue in context menus in some other apps, e.g. Files:
Might be a GTK or stylesheet issue?
I do not think this part of the code has changed so looks like a side-effect of some upstream change. I'll see if there is a fix.
I havent found a fix by tweaking the Gtk.Menu used. Its size seems to be limited by the height of the headerbar (even if attached to and shown on a larger widget). There is no significant difference between the code used for this menu and the View context menu. Maybe a window manager issue? Or possibly associated with the change to using Hdy widgets. May have to use a popover instead. As Files master is now incompatible with Hera the fix will not appear until Odin is released.
Part of the problem is that the menu does not know what size it needs to be when it is shown since it is shown before the directory has finished loading its children (in case this takes a long time). It is is possible to set the initial size larger, but it does not resize when loading is finished and the extra items added (even if size request changed manually).
I'm no longer able to reproduce this; I wonder if something changed in Ubuntu's GTK again?
@ryonakano are you still able to reproduce this?
@meisenzahl Yeah, unfortunately on my side. I'm using the latest updated odin and it still occurs:
I am also still getting this/getting this again on an up-to-date 6.0 install, in English. It might be some sort of race condition when the menu is initialized, because I don't think I see it every time…
I still get this everywhere ryonakano reported it, the application menu context menus are now not usable due to the scrollable arrows being oversized:
Prerequisites
Describe the bug
The "Uninstall" and "Show in AppCenter" menu entry in the context menu of an app icon is not shown by default and need to scroll on the menu.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All context menu entries should be shown by default without scrolling.
Platform Information