Fixing tooltip reposition bug on window resize