Update the frame when setting content size