gadget: Fix a thinko in baseline adjustment

We are making the allocation smaller, so the baseline
needs to get smaller too, not bigger.
This commit is contained in:
Matthias Clasen 2015-12-15 18:14:16 -05:00
parent 47632df9a5
commit 2bb80a9bb2

View File

@ -547,7 +547,7 @@ gtk_css_gadget_allocate (GtkCssGadget *gadget,
content_allocation.width = allocation->width - extents.left - extents.right;
content_allocation.height = allocation->height - extents.top - extents.bottom;
if (baseline >= 0)
baseline += extents.top;
baseline -= extents.top;
if (content_allocation.width < 0)
{