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

[jira] [Created] (CB-212) iOS orientation switch broken in 1.4.0

iOS orientation switch broken in 1.4.0
--------------------------------------

                 Key: CB-212
                 URL: https://issues.apache.org/jira/browse/CB-212
             Project: Apache Callback
          Issue Type: Bug
    Affects Versions: 1.4.0
            Reporter: Steve Gill


Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.

Looks like we will be releasing a point release soon! 1.4.1


--
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-212) iOS orientation switch broken in 1.4.0

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

Adam Arsenault commented on CB-212:
-----------------------------------

I have done some more debugging and I am noticing that when using the older simulators, ie 4.2, 4.3 the inner web view does not seem to resize to the full width. I attached an on window resize event inside my app and for both portrait and landscape orientations, the width is 320 instead of being 320 for portrait and 480 for landscape. The height does change though. I am seeing 300 for landscape and 460 for portrait.

This is not an issue in the iOS 5.0 simulator though. I will open another issue as well so this doesn't get lost.
                
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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-212) iOS orientation switch broken in 1.4.0

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

Shazron Abdullah resolved CB-212.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0
         Assignee: Shazron Abdullah
    
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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-212) iOS orientation switch broken in 1.4.0

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

Pertti Kasane commented on CB-212:
----------------------------------

I have not investigated properly the source code, but could this be a bug introduced in 1.4/1.4.1: When starting the application in Landscape mode and before the first orientation change, the window.innerHeight and window.innerWidth are incorrect - giving values of portrait mode. 

This happens at least with 1.4.1 and iOS 5.0 / 5.1beta.
                
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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-212) iOS orientation switch broken in 1.4.0

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

Pertti Kasane commented on CB-212:
----------------------------------

We figured out that the previous only relates to the use of the iAD plugin. Will investigate further...
                
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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] [Issue Comment Edited] (CB-212) iOS orientation switch broken in 1.4.0

Posted by "Shazron Abdullah (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197481#comment-13197481 ] 

Shazron Abdullah edited comment on CB-212 at 2/1/12 1:29 AM:
-------------------------------------------------------------

To patch this, in your app's MainViewController.m:

{code:title=MainViewController.m|borderStyle=solid}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
{code}
                
      was (Author: shazron):
    To patch this, in your app's MainViewController.m:

<pre>
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
</pre>
                  
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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-212) iOS orientation switch broken in 1.4.0

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

Shazron Abdullah commented on CB-212:
-------------------------------------

To patch this, in your app's MainViewController.m:

<pre>
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
</pre>
                
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>              Labels: ios
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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-212) iOS orientation switch broken in 1.4.0

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

Adam Arsenault commented on CB-212:
-----------------------------------

I am using Sencha Touch 1.1 inside Phonegap 1.4.1 and this fix works for me when using the iPhone 5.0 simulator but DOES NOT work for me in older simulators like 4.2 or 4.3. 

Any ideas why this would happen?
                
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
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