The orientationchangeend event is fired when the orientation of the device has changed and the associated rotation animation has been complete.
Dynamic viewport management for mobile. Manage viewport in different states of device orientation. Scale document to fit viewport. Calculate the dimensions of the minimal iOS 8 view relative to your viewport width.