mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
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:
parent
47632df9a5
commit
2bb80a9bb2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user