Created new method to keep the popover the right size in portrait mode.