Window is resizing correctly