grid-layout: Insert new rows/columns at the appropriate position
authorBastian Winkler <buz@netbuz.org>
Tue, 12 Jun 2012 12:30:00 +0000 (14:30 +0200)
committerBastian Winkler <buz@netbuz.org>
Tue, 12 Jun 2012 21:50:44 +0000 (23:50 +0200)
clutter/clutter-grid-layout.c

index c482af7..2ae6d96 100644 (file)
@@ -370,6 +370,8 @@ clutter_grid_request_update_child_attach (ClutterGridRequest *request,
         }
 
       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,
                            CHILD_WIDTH (grid_child),
                            CHILD_HEIGHT (grid_child));