debug: if window is resized