menu: Use correct content height

This commit is contained in:
Timm Bäder 2018-07-20 19:19:37 +02:00
parent 933cb857cf
commit b749fe4270

View File

@ -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;