Window correctly resized