grid-layout: Insert new rows/columns at the appropriate position
This commit is contained in:
parent
7c8f761d43
commit
1bdd214811
1 changed files with 2 additions and 0 deletions
|
@ -370,6 +370,8 @@ clutter_grid_request_update_child_attach (ClutterGridRequest *request,
|
||||||
}
|
}
|
||||||
|
|
||||||
sibling = clutter_actor_get_previous_sibling (actor);
|
sibling = clutter_actor_get_previous_sibling (actor);
|
||||||
|
if (sibling)
|
||||||
|
clutter_grid_layout_insert_next_to (request->grid, sibling, side);
|
||||||
grid_attach_next_to (request->grid, actor, sibling, side,
|
grid_attach_next_to (request->grid, actor, sibling, side,
|
||||||
CHILD_WIDTH (grid_child),
|
CHILD_WIDTH (grid_child),
|
||||||
CHILD_HEIGHT (grid_child));
|
CHILD_HEIGHT (grid_child));
|
||||||
|
|
Loading…
Reference in a new issue