Fixed resize on Windows