mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00: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,
|
gfloat,
|
||||||
line_index);
|
line_index);
|
||||||
|
|
||||||
|
if (line_index >= 0)
|
||||||
|
item_y += priv->row_spacing;
|
||||||
|
|
||||||
line_item_count = 0;
|
line_item_count = 0;
|
||||||
line_index += 1;
|
line_index += 1;
|
||||||
|
|
||||||
@ -561,6 +564,9 @@ clutter_flow_layout_allocate (ClutterLayoutManager *manager,
|
|||||||
gfloat,
|
gfloat,
|
||||||
line_index);
|
line_index);
|
||||||
|
|
||||||
|
if (line_index >= 0)
|
||||||
|
item_x += priv->col_spacing;
|
||||||
|
|
||||||
line_item_count = 0;
|
line_item_count = 0;
|
||||||
line_index += 1;
|
line_index += 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user