Open Bug 468734 Opened 16 years ago Updated 2 years ago

Gtk native-alike dropdowns should appear on top of the drop-down button

Categories

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

x86
Linux
defect

Tracking

()

People

(Reporter: zwol, Unassigned)

References

Details

(Keywords: polish)

Attachments

(1 file)

Attached image illustration of bug
When you click on a drop-down element in an HTML form, Mozilla draws the drop-down list with its topmost item immediately below the button you clicked on.  Native Gtk applications (at least with the theme I'm using) instead draw the drop-down list with its topmost item superimposed on the button you clicked on.  Also, the border of the list is drawn slightly differently.  The attached image illustrates the difference.
(N.B. the font size differences should be ignored.)
The dropdown is also drawn quite incorrectly, though. Not sure how much of this we should try to fix.
I believe this is also an issue on Mac. This'll probably need to be fixed in a cross-platform way.
It's hardly an urgent fix, I just noticed it while staring at a different bug and thought it should be filed.
An additional fillip on this that I just noticed:  A native Gtk dropdown list always appears with the currently-selected item directly under the mouse.  If the currently-selected item is not at the top of the list, that means the top of the list appears above where the button was.

I'm not sure what they do if the list is long enough to require a scroll bar, because I haven't seen a single native Gtk app that has a dropdown list that long.  The GNOME HIG[1] discourages the use of dropdowns for lists longer than ten items (you're supposed to use a regular list control instead) which is a reasonable policy IMO but doesn't get us out of implementing 'em...

Note that Gtk native comboboxes behave more like our dropdowns.  (Is there a HTML form element that generates a combobox?)

[1] http://library.gnome.org/devel/hig-book/stable/controls-option-menus.html.en
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: