Fixed correct panel position on window resize