Fixed view bounds for iOS 8

Fixed view bounds for rotating screen bounds under iOS 8.