Control panel hides on resize event