forked from AuroraMiddleware/gtk
menu: Use correct content height
This commit is contained in:
parent
933cb857cf
commit
b749fe4270
@ -4079,14 +4079,10 @@ gtk_menu_move_current (GtkMenuShell *menu_shell,
|
||||
static gint
|
||||
get_visible_size (GtkMenu *menu)
|
||||
{
|
||||
GtkAllocation allocation;
|
||||
GtkWidget *widget = GTK_WIDGET (menu);
|
||||
GtkBorder arrow_border;
|
||||
gint menu_height;
|
||||
|
||||
gtk_widget_get_allocation (widget, &allocation);
|
||||
|
||||
menu_height = allocation.height;
|
||||
menu_height = gtk_widget_get_height (GTK_WIDGET (menu));
|
||||
|
||||
get_arrows_border (menu, &arrow_border);
|
||||
menu_height -= arrow_border.top;
|
||||
|
Loading…
Reference in New Issue
Block a user