This should be easy but I can't seem to find a good solution.

What is the best way to ensure that a parent container resizes when child resizes. Calling syncSize on parent on the resize event of child might be a solution but is there a better one?