Resize the popup that the content is not cut