Update content size when the frame size changes