From dd836fff353fa0d3be4d92c94aeca262b9c2c1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 10 May 2017 12:07:15 +0200 Subject: [PATCH] flowbox: Fix child item allocation --- gtk/gtkflowbox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index 787318255a..02440b27ac 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -1830,15 +1830,15 @@ gtk_flow_box_allocate (GtkCssGadget *gadget, /* Do the actual allocation */ if (priv->orientation == GTK_ORIENTATION_HORIZONTAL) { - child_allocation.x = item_offset; - child_allocation.y = line_offset; + child_allocation.x = widget_allocation.x + item_offset; + child_allocation.y = widget_allocation.y + line_offset; child_allocation.width = this_item_size; child_allocation.height = this_line_size; } else /* GTK_ORIENTATION_VERTICAL */ { - child_allocation.x = line_offset; - child_allocation.y = item_offset; + child_allocation.x = widget_allocation.x + line_offset; + child_allocation.y = widget_allocation.y + item_offset; child_allocation.width = this_line_size; child_allocation.height = this_item_size; }