Fix for iOS window position flicker.