fixed issue whereby window would be jerky after manual resize