using super for resizeEvent