Fixed offset calculation for hybrid apps in iOS 7.