Fix ipad offset calculation for all orientations.