feature request: PopoverMenu/GMenu should become scrollable if (sub) menu would be too tall for screen
See below discussion from IRC. Currently (sub)menus just grow vertically forever and can eventually go off the top/bottom edge of the screen, leaving exterior items not visible/reachable. It would be brilliant if GTK could detect this condition and make such menus clamped to the screen size and become scrollable, so that (even though this likely indicates a need for submenus), there is at least a way to view/reach the items.
So if it's possible to interpose a ScrolledWindow and reveal it when needed, that would be superb - Thanks!
Company
yea
I would caution though: GTK4 did not get too much work done on menus
so there might be valid reasons to improve things for apps that use menus extensively
dboles
so the way that popover menus behave there might not be the ideal design, i guess
mclasen
they were made to be 'close enough' to menus
Company
and if you encounter such things, talking to mclasen (who did the popovermenu stuff) about adding improvements in GTK is probably a good idea
mclasen
not more, not less
[...]
dboles oh, here's one: native scrolling in tall popover menus
Company and with popovers, menus are more like dialogs
dboles AFAICT currently a tall popover menu just goes off the top/bottom of the screen and that's you
so for those i've had to add sections
mclasen scrolling in menus has been one of the more painful parts of gtk3 menus
Company your menus are too big :p
dboles i agree, so i added some really nice sections - and got chewed out for it
Company mclasen: scrolling in gtk3 doesn't use a viewport though but it's own madness
mclasen: not that I'm advocating for it
dboles so maybe if a popover (sub)menu could detect that it is exceeding the screen height and become scrollable,
that could go far
yeah, i don't miss the GtkMenu style scrolling at all - just the ability to scroll generally
mclasen yeah, but if you 'just us a scrolled window', you get scrollbars
Company mclasen: oh, and the combobox menu scrolling is mostly that bad
because it wants to place the current item below the pointer
dboles and personally, i'd just make the menu more nested, but again - it's not worth the hassle i'll get for it
mclasen not the expected ux for menus
dboles true, but it's better than nothing IMHO
Company the main benefit of scrollbars is when apps get run on small form factors
mclasen the other problem with menu scrolling is sizing to the monitor
Company that the menu wasn't designed for
mclasen with push-in and placement, and all that madness
Company being able to scroll there at least keeps the app usable
mclasen and workareas
dboles yeah, for me it's just having scrollability at all that matters
is it ideal? probably not. does it indicate the menu is too tall? sure. but until someone approves a change in UX...
Company sizing shouldn't really change if you push through the natural size
mclasen one hopes
Company because we try to size to natural size
mclasen worth a try, at least
Company yeah, it's entirely possible that it breaks
dboles shall i make an issue requesting adding scrolling? and any thoughts on a way to always show icons?
mclasen dboles: if adding a scrolledwindow in the right place makes big menus usable without affecting menus of the right size,
I'm fine with it