diff --git a/clutter/clutter-grid-layout.c b/clutter/clutter-grid-layout.c index f56774dfd..8c419bbc9 100644 --- a/clutter/clutter-grid-layout.c +++ b/clutter/clutter-grid-layout.c @@ -1425,13 +1425,16 @@ clutter_grid_layout_allocate (ClutterLayoutManager *layout, &y, &height); x += allocation->x1; y += allocation->y1; - clutter_actor_box_set_origin (&child_allocation, x, y); - clutter_actor_box_set_size (&child_allocation, width, height); CLUTTER_NOTE (LAYOUT, "Allocation for %s { %.2f, %.2f - %.2f x %.2f }", _clutter_actor_get_debug_name (child), x, y, width, height); + child_allocation.x1 = x; + child_allocation.y1 = y; + child_allocation.x2 = child_allocation.x1 + width; + child_allocation.y2 = child_allocation.y1 + height; + clutter_actor_allocate (child, &child_allocation, flags); } }