You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Radoslav Todorov (Updated) (JIRA)" <ji...@apache.org> on 2012/03/14 13:20:37 UTC
[jira] [Updated] (CB-302) Orientation change issue (PhoneGap 1.5.0
iOS)
[ https://issues.apache.org/jira/browse/CB-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radoslav Todorov updated CB-302:
--------------------------------
Environment:
Tested on iOS 5 iPod Touch, iOS 5 iPad and the iOS Simulator.
Universal App with deployment target 5.0 using PhoneGap(Cordova) 1.5.0.
was:
Testted on iOS 5 iPod Touch, iOS 5 iPad and the iOS Simulator.
Universal App with deployment target 5.0 using PhoneGap(Cordova) 1.5.0.
> Orientation change issue (PhoneGap 1.5.0 iOS)
> ---------------------------------------------
>
> Key: CB-302
> URL: https://issues.apache.org/jira/browse/CB-302
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.5.0
> Environment: Tested on iOS 5 iPod Touch, iOS 5 iPad and the iOS Simulator.
> Universal App with deployment target 5.0 using PhoneGap(Cordova) 1.5.0.
> Reporter: Radoslav Todorov
> Assignee: Shazron Abdullah
>
> The "orientationchange" event is called twice.
> Nothing from the original PhoneGap library is modified.
> I tested this ot two different applications, the one is nothing more than the code below.
>
> This is the code i use:
>
> function change(e){
> console.log("change");
> console.log(window.orientation);
> }
> document.addEventListener("orientationchange",change);
> Here are some of the logs i get from the above code:
> 2012-03-06 19:39:12.353 Test[84253:207] [INFO] 0
> 2012-03-06 19:39:12.359 Test[84253:207] [INFO] change
> 2012-03-06 19:39:12.360 Test[84253:207] [INFO] 0
> 2012-03-06 19:39:13.301 Test[84253:207] [INFO] change
> 2012-03-06 19:39:13.303 Test[84253:207] [INFO] 90
> 2012-03-06 19:39:13.305 Test[84253:207] [INFO] change
> 2012-03-06 19:39:13.306 Test[84253:207] [INFO] 90
> 2012-03-06 19:39:14.710 Test[84253:207] [INFO] change
> 2012-03-06 19:39:14.712 Test[84253:207] [INFO] 180
> 2012-03-06 19:39:14.715 Test[84253:207] [INFO] change
> 2012-03-06 19:39:14.716 Test[84253:207] [INFO] 180
> 2012-03-06 19:39:15.477 Test[84253:207] [INFO] change
> 2012-03-06 19:39:15.480 Test[84253:207] [INFO] -90
> 2012-03-06 19:39:15.485 Test[84253:207] [INFO] change
> 2012-03-06 19:39:15.485 Test[84253:207] [INFO] -90
--
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