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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/07 07:40:05 UTC

[jira] [Created] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

        

[jira] [Updated] (CB-302) orientationchange event fires off twice under iOS 5.x

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

Shazron Abdullah updated CB-302:
--------------------------------

    Summary: orientationchange event fires off twice under iOS 5.x  (was: Orientation change issue (PhoneGap 1.5.0 iOS))
    
> orientationchange event fires off twice under iOS 5.x
> -----------------------------------------------------
>
>                 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
>             Fix For: 1.6.1
>
>
> 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

        

[jira] [Updated] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

Shazron Abdullah updated CB-302:
--------------------------------

    Fix Version/s: 1.6.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
>             Fix For: 1.6.0
>
>
> 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

        

[jira] [Resolved] (CB-302) orientationchange event fires off twice under iOS 5.x

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

Shazron Abdullah resolved CB-302.
---------------------------------

    Resolution: Fixed

Fix commit: http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=0fefc52ae00bfa4f8b280186a42cc0c649e425d1
                
> orientationchange event fires off twice under iOS 5.x
> -----------------------------------------------------
>
>                 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
>             Fix For: 1.6.1
>
>
> 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

        

[jira] [Updated] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

Brian LeRoux updated CB-302:
----------------------------

    Fix Version/s:     (was: 1.6.0)
                   1.7.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
>             Fix For: 1.7.0
>
>
> 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

        

[jira] [Updated] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

Posted by "Radoslav Todorov (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Reopened] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

Shazron Abdullah reopened CB-302:
---------------------------------


found a repro.
                
> 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
>             Fix For: 1.6.0
>
>
> 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

        

[jira] [Updated] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

Shazron Abdullah updated CB-302:
--------------------------------

    Fix Version/s:     (was: 1.6.0)
                   1.6.1
    
> 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
>             Fix For: 1.6.1
>
>
> 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

        

[jira] [Resolved] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

Shazron Abdullah resolved CB-302.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.7.0)
                   1.6.0

Didn't verify in 1.5.0, but in 1.6.0 this is a no-repro (fixed I suppose)
                
> 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
>             Fix For: 1.6.0
>
>
> 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

        

[jira] [Issue Comment Edited] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)

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

Shazron Abdullah edited comment on CB-302 at 4/13/12 7:28 PM:
--------------------------------------------------------------

found a repro. see CB-501
                
      was (Author: shazron):
    found a repro.
                  
> 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
>             Fix For: 1.6.0
>
>
> 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