mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
GtkMenu: Don't subtract shadow from requisition
This was causing menus to show up in the wrong position in case the menu popped up towards the top and/or left. The change to the requisition was in error; it is the allocated size of the menu, not the toplevel, and doesn't include the shadow. https://bugzilla.gnome.org/show_bug.cgi?id=591258
This commit is contained in:
parent
bb6057bfb7
commit
a80e77ff95
@ -4494,8 +4494,8 @@ gtk_menu_position (GtkMenu *menu,
|
||||
|
||||
_gtk_window_get_shadow_width (GTK_WINDOW (priv->toplevel), &border);
|
||||
|
||||
requisition.width = gtk_widget_get_allocated_width (widget)- border.left - border.right;
|
||||
requisition.height = gtk_widget_get_allocated_height (widget) - border.top - border.bottom;
|
||||
requisition.width = gtk_widget_get_allocated_width (widget);
|
||||
requisition.height = gtk_widget_get_allocated_height (widget);
|
||||
|
||||
if (pointer_screen != screen)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user