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.
This commit is contained in:
Rob Bradford 2009-12-01 17:11:08 +00:00
parent b43e804c07
commit c564303601

View File

@ -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;