GNOME Bugzilla – Bug 744498
panelMenu: Consider vertical margins when computing max-height
Last modified: 2015-02-20 17:24:54 UTC
See patch.
Created attachment 296805 [details] [review] panelMenu: Consider vertical margins when computing max-height When opening a panel menu, we set it's max-height to the available work-area height to keep menus with scrollable content from growing outside the monitor. However a menu that extends all the way down to the bottom edge does not look great either, so also take margins into account here.
Review of attachment 296805 [details] [review]: ::: data/theme/gnome-shell.css @@ +171,3 @@ .popup-menu { min-width: 200px; + margin-bottom: 1.75em; We need to use a more specific selector for this so that it only applies to PopupMenus attached to PanelMenuButtons I'm afraid. Try for instance opening a WindowMenu or a BackgroundMenu near the bottom so that they are forced to flip and you'll see that this margin makes them move away from the pointer too much.
Created attachment 296861 [details] [review] panelMenu: Consider vertical margins when computing max-height Oh, good catch ...
Review of attachment 296861 [details] [review]: ok
Uhm, this was pushed a while ago Attachment 296861 [details] pushed as 7bb7734 - panelMenu: Consider vertical margins when computing max-height