mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
b43e804c07
commit
c564303601
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user