re-center popup on window resize