fix widget overlay on window resize