Close popover when resizing the app window