Open Bug 500073 Opened 16 years ago Updated 2 years ago

GTK submenu vertical position is too low

Categories

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

All
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: kr, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090620 Ubuntu/9.04 (jaunty) Shiretoko/3.5 Build Identifier: Submenus are vertically positioned too low on the screen. Currently, the very top of a mozilla submenu is aligned with the top of the selected item in the parent menu, but this doesn't match the behavior of native gtk menus, where the top of the first _item_ in the submenu is aligned with the top of the selected parent menu item. Reproducible: Always Steps to Reproduce: 1. Open a menu 2. Open a submenu 3. Highlight the first item in the submenu Actual Results: The top of the submenu is aligned with the top of the selected parent menu item. Also, the submenu item is lower than the parent menu item. As a result, when moving the cursor in a straight horizontal line to the right from the parent menu, it is possible to "miss" the first submenu item. Expected Results: The top of the first item in the submenu should be aligned with the selected parent menu item. This happens with every gtk theme I have tried. The amount of vertical error (distance from the correct position) depends on the gtk theme, which determines the amount of top padding inside the submenu. This seems like a polish bug, but it's prominent. It happens in the main interface (for example, the View menu) and a normal user will encounter it many times per day. It is also pretty easy to see. If you work on this, while you're at it you might want to try also fixing the _horizontal_ position of submenus, which is currently too far to the right by a couple of pixels. However, that bug is much harder to see and I don't know how the correct position is defined (is it a fixed offset? themable? relative to something else?).
On the left, a mozilla submenu where the two selected items don't line up. On the right, a native submenu where they do.
I can't reproduce it. Mozilla/5.0 (X11; Linux x86_64; rv:2.0b3pre) Gecko/20100729 Minefield/4.0b3pre
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: