Modified the _deviceOrientation so that the parentWidth and parentHeight can work normallyn