incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "will prater (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-1372) Orientation issue when status bar is hidden
Date Wed, 05 Sep 2012 07:25:07 GMT

    [ https://issues.apache.org/jira/browse/CB-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448542#comment-13448542
] 

will prater edited comment on CB-1372 at 9/5/12 6:24 PM:
---------------------------------------------------------

Forgot to mention that Im using an iPad and only have the project to render as such.

I've replicated my issue on a new build of 2.1rc2.

Here is what happens after I dismiss the UIImagePickerController
http://drop.superformula.com/3t2V2F181x1B

The only way to get that black bar (which is the webView rendered in portrait) is to rotate
the device to portrait and back.  But this only works if you allow all interface orientations.

Here is what I've placed in the AppDelegate at the exact location you pointed out above


{code}
    UIApplication.sharedApplication.statusBarOrientation = UIInterfaceOrientationLandscapeRight;
    
    [UIApplication.sharedApplication setStatusBarHidden:true
                                          withAnimation:UIStatusBarAnimationNone];
{code}
                
      was (Author: wprater):
    Forgot to mention that Im using an iPad and only have the project to render as such.

I've replicated my issue on a new build of 2.1rc2.

Here is what happens after I dismiss the UIImagePickerController
http://drop.superformula.com/3t2V2F181x1B

Here is what I've placed in the AppDelegate at the exact location you pointed out above


{code}
    UIApplication.sharedApplication.statusBarOrientation = UIInterfaceOrientationLandscapeRight;
    
    [UIApplication.sharedApplication setStatusBarHidden:true
                                          withAnimation:UIStatusBarAnimationNone];
{code}

                  
> Orientation issue when status bar is hidden
> -------------------------------------------
>
>                 Key: CB-1372
>                 URL: https://issues.apache.org/jira/browse/CB-1372
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: mountain lion
>            Reporter: will prater
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> If I manually hide the status bar in the AppDelegate after the forceStartupRotation routine,
issues persist after dismissing the CDVCamera.
> Im hiding the status bar as such
>     [[UIApplication sharedApplication] setStatusBarHidden:true
>       withAnimation:UIStatusBarAnimationNone]
> My application is setup to only run as UIInterfaceOrientationLandscapeRight in mainViewController#shouldAutorotateToInterfaceOrientation
> If Im to pull up the CDVCamera with takePicture and then dismiss it, the app appears
to be in UIInterfaceOrientationPortrait.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message