updates the scrollview height to be dynamic according to content size