After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622938 - Blank space at the top when opening the combo box
Blank space at the top when opening the combo box
Status: RESOLVED DUPLICATE of bug 374871
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 648452 680593 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-27 12:17 UTC by Nicolò Chieffo
Modified: 2020-11-15 19:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (9.71 KB, image/png)
2010-06-27 12:17 UTC, Nicolò Chieffo
Details

Description Nicolò Chieffo 2010-06-27 12:17:28 UTC
Created attachment 164742 [details]
screenshot

This happens only with GtkComboBox, and not GtkComboBoxEntry.

There is a scenario in which when you open the combo box you'll get a blank space it the top.
This is beacause the first entry of the combo box items is placed just below the main widget, while the menu background is expanded accordingly to the number of items.
The result is really unpleasant to see.
Comment 1 Nicolò Chieffo 2010-06-27 12:22:17 UTC
Note: in the screenshot there is also a GtkComboBoxEntry, just ignore it.
Comment 2 Matthew Paul Thomas (mpt) 2010-08-24 14:22:00 UTC
A current example of this is in time-admin ("Administration" > Time and Date"), if you set your time zone to "Africa/Abidjan" and then reopen the menu.

GTK radio menus are faster to use than those than their equivalents in Qt or Windows, because they open with the currently selected item under the pointer, the previous item immediately above, and the next item immediately below. It is much more common to want to choose an item near the current selection than an item near the beginning of the menu, so this minimizes pointer movement.

The drawback is that when there are more items after the current selection than will fit between the menu control and the bottom of the screen, the menu needs to either (1) open with an empty space at the top (as shown in the screenshot), ready to fill with items if you auto-scroll the menu, or (2) enlarge the window from the top smoothly as you auto-scroll. GTK currently does #1; it could do #2 instead, but that might be difficult to implement.
Comment 3 Matthias Clasen 2011-04-26 17:08:39 UTC
*** Bug 648452 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Boles 2017-03-03 14:55:13 UTC
*** Bug 680593 has been marked as a duplicate of this bug. ***
Comment 5 Jean-François Fortin Tam 2017-04-28 19:23:33 UTC
Marking as duplicate of the older bug, in which I'm also imagining a potential approach, UX-wise.

*** This bug has been marked as a duplicate of bug 374871 ***