Apache Cordova
  1. Apache Cordova
  2. CB-263

PhoneGap Splash screen is incorrectly positioned

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.7.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      Xcode 4.2, PhoneGap 1.4.1

      Description

      The splash screen image view is offset up by a distance that appears to be equal to the height of the status bar. As a result, user can see portion of the white web view at the bottom of the screen. The perceived effect is that the launch image briefly jumps up just before the web view is revealed.

      To reproduce, set up a project like this:

      • Create new PhoneGap 1.4.1 iOS project.
      • Add info plist entry with key "Launch image (iPad)" and value "iPad".
      • Add iPad-Landscape.png and iPad-Portrait.png to project's Resources group. I used solid red images (for contrast) of standard size (768x1004 and 1024x748).

      Run the project in iOS 5 simulator or an iOS 5 iPad to see the splash jump up.

      The problem seems to be that [PGViewController showSplashScreen] does not account for status bar when it sizes and positions the image view.

        Activity

        Shazron Abdullah made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Shazron Abdullah made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Brian LeRoux made changes -
        Fix Version/s 1.7.0 [ 12319549 ]
        Fix Version/s 1.6.0 [ 12319548 ]
        Shazron Abdullah made changes -
        Fix Version/s 1.6.0 [ 12319548 ]
        Fix Version/s 1.5.0 [ 12319547 ]
        Shazron Abdullah made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Alex Talis made changes -
        Field Original Value New Value
        Description The splash screen image view is offset up by what appears to be height of the status bar. As a result, user can see portion of the white web view at the bottom of the screen. The perceived effect is that the launch image briefly jumps up just before the web view is revealed.

        To reproduce, set up a project like this:

        * Create new PhoneGap 1.4.1 iOS project.
        * Add info plist entry with key "Launch image (iPad)" and value "iPad".
        * Add iPad-Landscape.png and iPad-Portrait.png to project's Resources group. I used solid red images (for contrast) of standard size (768x1004 and 1024x748).

        Run the project in iOS 5 simulator or an iOS 5 iPad to see the splash jump up.

        The problem seems be that [PGViewController showSplashScreen] does not account for status bar when it sizes and positions the image view.
        The splash screen image view is offset up by a distance that appears to be equal to the height of the status bar. As a result, user can see portion of the white web view at the bottom of the screen. The perceived effect is that the launch image briefly jumps up just before the web view is revealed.

        To reproduce, set up a project like this:

        * Create new PhoneGap 1.4.1 iOS project.
        * Add info plist entry with key "Launch image (iPad)" and value "iPad".
        * Add iPad-Landscape.png and iPad-Portrait.png to project's Resources group. I used solid red images (for contrast) of standard size (768x1004 and 1024x748).

        Run the project in iOS 5 simulator or an iOS 5 iPad to see the splash jump up.

        The problem seems to be that [PGViewController showSplashScreen] does not account for status bar when it sizes and positions the image view.
        Alex Talis created issue -

          People

          • Assignee:
            Shazron Abdullah
            Reporter:
            Alex Talis
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development