summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-10 12:07:15 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-05-25 16:25:59 +0200
commitdd836fff353fa0d3be4d92c94aeca262b9c2c1e2 (patch)
tree177a61e4bac4ae0c870d95a39d56a7fea177c308
parent030b96cb495018c255c68884302201bba419435c (diff)
downloadgtk+-dd836fff353fa0d3be4d92c94aeca262b9c2c1e2.tar.gz
flowbox: Fix child item allocation
-rw-r--r--gtk/gtkflowbox.c8
1 files 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;
}