From c564303601f6cabdc3314070d225f74a3c6df174 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 1 Dec 2009 17:11:08 +0000 Subject: [PATCH] flow-layout: Respect row-spacing/col-spacine in horizontal/vertical flows We need to add the row-spacing value when calculating the y position for lines of actors in horizontal flowing layouts. Similarly we need to add the col-spacing value when calculating the x posution for actors in vertical flowing layouts. --- clutter/clutter-flow-layout.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/clutter-flow-layout.c b/clutter/clutter-flow-layout.c index c2bd72de6..e6f836e57 100644 --- a/clutter/clutter-flow-layout.c +++ b/clutter/clutter-flow-layout.c @@ -525,6 +525,9 @@ clutter_flow_layout_allocate (ClutterLayoutManager *manager, gfloat, line_index); + if (line_index >= 0) + item_y += priv->row_spacing; + line_item_count = 0; line_index += 1; @@ -561,6 +564,9 @@ clutter_flow_layout_allocate (ClutterLayoutManager *manager, gfloat, line_index); + if (line_index >= 0) + item_x += priv->col_spacing; + line_item_count = 0; line_index += 1;