Resizing window now moves popover properly