GNOME Bugzilla – Bug 791959
ComboBox drop down list exceed application window area
Last modified: 2018-05-02 19:38:30 UTC
Created attachment 365979 [details] Drop Down list covers windows taskbar combobox = Gtk.ComboBox() combobox.set_wrap_width(1) combobox.set_model(liststore) combobox.set_active(0) Combobox drop down list populated with liststore exceed the main application window area. When the ComboBox is at the bottom of the page, the drop down list ideally should direct upwards rather then filling up the below spaces covering the windows taskbar.
I was able to reproduce it (run gtk3-demo, run combobox demo, move the window closer to the bottom edge of the screen, where taskbar is, click on the combobox - the dropdown will appear over the taskbar). This should definitely be fixed, GDK (GTK?) should use gdk_win32_monitor_get_workarea() to get the area it can use to display a popup.
Actually, i was wrong. In gtk3 3.22-git this doesn't happen, as gdk_window_impl_move_to_rect() correctly uses gdk_monitor_get_workarea() to get the work area for menu shifting. What *does* happen is that monitor workarea is not updated when the taskbar is moved, so the change won't be accounted for in GDK until the application is restarted (or monitors are changed in a more fundamental way that triggers monitor re-enumeration).
-- 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/1000.