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 374871 - If Combobox menu must scroll, it creates blank space above/below the items
If Combobox menu must scroll, it creates blank space above/below the items
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
3.22.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
https://bugs.launchpad.net/ubuntu/+so...
: 613312 622938 775783 789914 (view as bug list)
Depends on: 333470
Blocks: 590276
 
 
Reported: 2006-11-13 21:19 UTC by Thomas D Ahle
Modified: 2018-05-02 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Shot of the gimp, with 100% height budylist (16.23 KB, image/jpeg)
2006-11-13 21:20 UTC, Thomas D Ahle
Details
How it looks like in gajim (43.13 KB, image/png)
2008-03-29 17:20 UTC, Marcin Szewczyk, Wodny
Details

Description Thomas D Ahle 2006-11-13 21:19:24 UTC
If the combobox is placed in the bottom of the screen, it hides the entire content of the box.
I know that this is made, so that the current selected item is places at the cursor, but as shown in the screenshot, it really makes it much less usable in some contents.
I think that making an exception to the above rule, when perhaps more than 50% is hidden, would be worthy to consider.

Other information:
Comment 1 Thomas D Ahle 2006-11-13 21:20:23 UTC
Created attachment 76523 [details]
Shot of the gimp, with 100% height budylist
Comment 2 Marcin Szewczyk, Wodny 2008-03-29 17:19:07 UTC
I think it is a bug as well.

It frustrates me every time I change status in gajim.

It just looks very strange to have a lot of lines empty in the upper part of the box. I would appreciate if a combobox looked like after scrolling it down manually by default if it does not fit into the screen.
Comment 3 Marcin Szewczyk, Wodny 2008-03-29 17:20:38 UTC
Created attachment 108232 [details]
How it looks like in gajim
Comment 4 Stephen M 2008-04-04 20:36:55 UTC
I understand why the blank space is left there.  So when you scroll from the current item down, it has space to scroll into, but is there someway that the blank space could be made invisible or the menu window (the thing that holds the menu) be resized as you scroll?  Having all that blank space is confusing to users (and programmers who are trying to debug their combo boxes) and not intuitive.

I don't know what the limitations are the authors of GTK have to work within, but it would be nice is the blank space was invisible... looks better and would reduce confusion and frustration.

Thanks for considering!
Comment 5 Jeremy Nickurak 2009-02-19 16:56:23 UTC
Also present with nm-applet when there's many wireless networks around. Very odd looking.
Comment 6 Jean-François Fortin Tam 2017-04-28 19:21:54 UTC
IMHO the best approach (in cases where a ComboBox is really the best widget, vs some other type of list picker widget) would be:

- Automatically move the mouse cursor to keep it on top (of the previously selected item) when showing the combobox's popup menu

- If the list is too long to fit on the screen height, allow scrolling, but do a best effort to scroll it as little as possible to minimize the distance delta of the mouse cursor (that would be moved as per the point above) if the list is very long.
Comment 7 Jean-François Fortin Tam 2017-04-28 19:23:33 UTC
*** Bug 622938 has been marked as a duplicate of this bug. ***
Comment 8 Jean-François Fortin Tam 2017-04-28 19:24:46 UTC
*** Bug 613312 has been marked as a duplicate of this bug. ***
Comment 9 Jean-François Fortin Tam 2017-04-28 19:34:34 UTC
Also marking bug #333470 as a requirement because my approach suggested in comment #6 will depend heavily on that not misbehaving (someone please review & merge the patch in bug #333470 anyway, it would be really awesome to merge on its own already, because it addresses the precision bug making comboboxes and menus unreliable to use regardless of scroll behavior).
Comment 10 Matthias Clasen 2017-05-01 16:39:42 UTC
> - Automatically move the mouse cursor to keep it on top (of the previously 
> selected item) when showing the combobox's popup menu

That is not going to happen. The cursor position is under the control of the user, and we're not going to yank it around like that.
Comment 11 Daniel Boles 2017-08-24 22:07:02 UTC
*** Bug 775783 has been marked as a duplicate of this bug. ***
Comment 12 Daniel Boles 2017-11-06 16:46:55 UTC
*** Bug 789914 has been marked as a duplicate of this bug. ***
Comment 13 GNOME Infrastructure Team 2018-05-02 14:22:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/270.