Fix orientation changes on iOS 8.

On iOS 8 rotation is applied above the window, so flipping width and height is not needed.