cssgadget: fix fallback case

We should be resetting the height here, not the width.
This commit is contained in:
Cosimo Cecchi 2015-12-20 18:23:46 -08:00
parent 655132b87c
commit 5611e81bbc

View File

@ -563,7 +563,7 @@ gtk_css_gadget_allocate (GtkCssGadget *gadget,
g_warning ("Negative content height while allocating gadget (node %s, owner %s)\n",
gtk_css_node_get_name (gtk_css_gadget_get_node (gadget)),
G_OBJECT_TYPE_NAME (gtk_css_gadget_get_owner (gadget)));
content_allocation.width = 0;
content_allocation.height = 0;
}
GTK_CSS_GADGET_GET_CLASS (gadget)->allocate (gadget, &content_allocation, baseline, &content_clip);