Commit 2bb80a9b authored by Matthias Clasen's avatar Matthias Clasen

gadget: Fix a thinko in baseline adjustment

We are making the allocation smaller, so the baseline
needs to get smaller too, not bigger.
parent 47632df9
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment