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 153829 - GtkComboEntry menu spans entire screen if the list is big
GtkComboEntry menu spans entire screen if the list is big
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.4.x
Other Linux
: Normal normal
: Small feature
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-09-27 10:31 UTC by Narayana Pattipati
Modified: 2014-03-24 03:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
screenshot showing the problem (731.08 KB, image/png)
2004-09-27 10:38 UTC, Narayana Pattipati
  Details
Patch fixes the bug. (1.67 KB, patch)
2005-01-28 12:30 UTC, Vijaykumar Patwari
rejected Details | Review

Description Narayana Pattipati 2004-09-27 10:31:22 UTC
If the list is big, GtkComboEntry has the following problems:

a) Even if the parent dialog/window is small, the list spawns entire screen.
This looks odd. Since the arrow buttons are anyway there (to scroll the 
list), probably the menu window size can be resrictied to the size of the 
parent dialog/window.

b) The top or botton portion of list is blank, depending on the position of the
menu item currently selected. This also looks very odd. For example, there can 
be a situation where entire top portion of the menu looks blank if user selects 
the first item in the list.

Please have a look at the attached screenshot, which shows both the problems.
Comment 1 Narayana Pattipati 2004-09-27 10:38:34 UTC
Created attachment 31974 [details]
screenshot showing the problem
Comment 2 Owen Taylor 2004-09-27 13:19:46 UTC
For the "blank area", see bug 129463 and referenced.

Clamping to the parent dialog is almost certainly wrong ... imagine a 
very short toplevel with a dropdown. I don't know if some
MAX (SOME_MULTIPLE_OF_FONT_HEIGHT, WINDOW_HEIGHT) would make sense.
Comment 3 Vijaykumar Patwari 2005-01-28 12:30:20 UTC
Created attachment 36644 [details] [review]
Patch fixes the bug.

This patch restricts menu being drawn beyond height of the screen, i.e check if
sum of height (lenght) of menuitems and the height co-ordinate (y-axis) of
start of the optionmenu exceeds the screen height, if it exceeds then set
y-axis co-ordinate to the screen heigth - height of the menu. so that menu
displayed is from the that co ordinate.
Comment 4 Matthias Clasen 2014-03-24 03:03:22 UTC
closing out ancient bugs