You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Alex Talis (Created) (JIRA)" <ji...@apache.org> on 2012/02/20 04:35:41 UTC

[jira] [Created] (CB-263) PhoneGap Splash screen is incorrectly positioned

PhoneGap Splash screen is incorrectly positioned
------------------------------------------------

                 Key: CB-263
                 URL: https://issues.apache.org/jira/browse/CB-263
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.4.0
         Environment: Xcode 4.2, PhoneGap 1.4.1
            Reporter: Alex Talis
            Assignee: Shazron Abdullah
             Fix For: 1.5.0


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Updated] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by Adam Robertson <ad...@cooked.it>.
I had this issue as well.  Quick fix that worked for me was to make sure
your splash image is exactly 1024 x 768.  If it is not the full height the
UIWebView will shift it up.

Adam


On Sun, Feb 19, 2012 at 7:39 PM, Alex Talis (Updated) (JIRA) <
jira@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Alex Talis updated CB-263:
> --------------------------
>
>    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.
>
>  was:
> 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.
>
>
> > PhoneGap Splash screen is incorrectly positioned
> > ------------------------------------------------
> >
> >                 Key: CB-263
> >                 URL: https://issues.apache.org/jira/browse/CB-263
> >             Project: Apache Callback
> >          Issue Type: Bug
> >          Components: iOS
> >    Affects Versions: 1.4.0
> >         Environment: Xcode 4.2, PhoneGap 1.4.1
> >            Reporter: Alex Talis
> >            Assignee: Shazron Abdullah
> >             Fix For: 1.5.0
> >
> >
> > 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.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
>

[jira] [Updated] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Alex Talis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Talis updated CB-263:
--------------------------

    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.

  was:
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.

    
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>             Fix For: 1.5.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "John P (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401643#comment-13401643 ] 

John P commented on CB-263:
---------------------------

I'm seeing this issue in 1.8.1. Is this a known issue?
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-263.
---------------------------------

    Resolution: Fixed

Fix commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/73620e43
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Alex Talis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212037#comment-13212037 ] 

Alex Talis commented on CB-263:
-------------------------------

That's definitely workable for now. Hopefully Apple won't decide that using non-standard launch image sizes is a "violation". It would be nice if this work around was easier to find without having to debug into PG source code. I googled this quite a bit but the most helpful thing I found was that some people modified source code to use application frame instead of screen bounds. Increasing image sizes is a much cleaner work around.
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Alex Talis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212034#comment-13212034 ] 

Alex Talis commented on CB-263:
-------------------------------

I worked around this for now by making launch images 20 pixels taller (768x1024 and 1024x768). However, this should be fixed to work with image sizes specified by Apple here: https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html


                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>             Fix For: 1.5.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Paul Cisneros (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243943#comment-13243943 ] 

Paul Cisneros commented on CB-263:
----------------------------------

This fix works. Does anyone know if Apple is rejecting apps because of the images not being sized in the Human Interface Guidelines? 
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Randy McMillan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243975#comment-13243975 ] 

Randy McMillan commented on CB-263:
-----------------------------------

My apps haven't been rejected using the  1024x768 dimensions

Also incorporating

@property(nonatomic,getter=isStatusBarHidden) BOOL statusBarHidden;

into the AppDelegate.h

and in AppDelegate.m

@synthesize invokeString, window, viewController, statusBarHidden;


if ( [UIApplication sharedApplication].statusBarHidden == YES)
{
NSLog(@"StatusBar is hidden!");
//adjust splash dimensions
}

becomes useful. 

This would also have benefits for plugins that need to adjust view dimensions as well. 

For example in SMSComposer.m Line 56

https://github.com/phonegap/phonegap-plugins/blob/master/iOS/SMSComposer/SMSComposer.m



  
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Paul Cisneros (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244998#comment-13244998 ] 

Paul Cisneros commented on CB-263:
----------------------------------

@Randy  Thanks for the code. I'm really a complete novice when it comes to Objective-C. 

Is this one whole block of code for the AppDelegate.m:

@synthesize invokeString, window, viewController, statusBarHidden;

if ( [UIApplication sharedApplication].statusBarHidden == YES)

{ NSLog(@"StatusBar is hidden!"); //adjust splash dimensions }
becomes useful.

And does this all go at the top just below the headers? Or is the IF statement to be placed elsewhere in the same file? I'm getting errors when trying to place: 

if ( [UIApplication sharedApplication].statusBarHidden == YES)

{ NSLog(@"StatusBar is hidden!"); //adjust splash dimensions }

Thanks in advance!
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Brian LeRoux (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian LeRoux updated CB-263:
----------------------------

    Fix Version/s:     (was: 1.6.0)
                   1.7.0
    
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Tom Clarkson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257541#comment-13257541 ] 

Tom Clarkson commented on CB-263:
---------------------------------

The issue is that the iOS instance of the 1024x748 image is placed wherever the status bar isn't, while the Cordova instance has a fixed position. 

I have uploaded a fix: https://github.com/apache/incubator-cordova-ios/pull/14

Also a variation of the same fix that works on top of the existing library code:

http://tqcblog.com/2012/04/20/fixing-the-phonegap-cordova-splash-screen/
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-263:
--------------------------------

    Fix Version/s:     (was: 1.5.0)
                   1.6.0
    
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-263:
--------------------------------

    Priority: Minor  (was: Major)

The fix is indeed having 1024x768, and this is specific for Cordova's requirements since we are trying to "match" the behaviour of the default splashscreen and are doing transformations on it. 
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-263) PhoneGap Splash screen is incorrectly positioned

Posted by "Randy McMillan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249600#comment-13249600 ] 

Randy McMillan commented on CB-263:
-----------------------------------

Id just ignore the warnings in the app summary but the code below will offer some insight on how to make further mods to the viewController.view.frame if you need to. Compare to the default AppDelegate.h/m for differences. 

https://gist.github.com/2339195
                
> PhoneGap Splash screen is incorrectly positioned
> ------------------------------------------------
>
>                 Key: CB-263
>                 URL: https://issues.apache.org/jira/browse/CB-263
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Xcode 4.2, PhoneGap 1.4.1
>            Reporter: Alex Talis
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 1.7.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira