An alternative solution (and possibly better) would be to adjust the size of the box to the initial content.