Preventing the popover to re-appear on resize