ensure panel is resized