Replaces this container's children with the supplied container's children and invalidates the layout.