iOS: Fixed rotation issues in overlay dialogs on iPad.