Fix odd overflow issue on orientation change on iOS devices.