Window resize now more syncronous