Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8988

[splashscreen] iOS splash screen rotation incorrectly scales image

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      iOS

      Description

      On iOS devices, if rotation occurs while the splash screen is visible, it ends up horribly/incorrectly scaling the existing image, instead of loading the correctly oriented image.

      This happens on both iPad and iPhone – although technically iPhone should not allow rotation at all. (I see there is another issue tracking that for iPhone.)

      From debugging, the issue appears to be that the interfaceOrientation of the viewController has not been updated at the time that the frame/bounds changes are observed by the plugin. Thus, even though the frame/bounds change, the correct image for the new orientation is never loaded.

      I will provide a PR with an alternate fix shortly. I found it worked better to use [[UIApplication sharedApplication] statusBarOrientation] to determine orientation.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dpolivy Dan Polivy

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment