Updating the size of the popover.