Aleksey Yashchenko created CB-3065:
--------------------------------------

             Summary: Incorrect window.orientation value for portrait-only apps 
after returning from landscape mode (and vice versa) on iOS
                 Key: CB-3065
                 URL: https://issues.apache.org/jira/browse/CB-3065
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.6.0
         Environment: Mac OS X 10.7.5, Darwin Kernel Version 11.4.2;
XCode 4.6.1
iOS 5.1-6.1 

            Reporter: Aleksey Yashchenko
            Assignee: Shazron Abdullah
            Priority: Minor


When changing orientation in portrait only app (e.g. by opening youtube video 
link in InAppBrowser and watching video in landscape mode) window.orientation 
have invalid value that affects many UI rendering code/styles.

Steps to reproduce:
- compose HTML with two buttons, 1: onClick='alert(window.orientation)', 
2:onClick="window.open('....://www.youtube.com/watch?v=xxxxx', '_blank');
- compile this resource to portrait only app (set 
UISupportedInterfaceOrientations to UIInterfaceOrientationPortrait in 
Info.plist)
- run app
- check orientation with first button, in portrait mode its 0
- push the second button, start youtube video, rotate device to landscape mode
- when in landscape mode press Done in YT video player and in InAppBrowser
- with first button check orientation its value -90/90

Described effect causes glitches and partial page rendering in several UI 
frameworks. Looks like web view gets incorrect orientation change even sequence 
why change itself is blocked by Info.plist setting.


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

Reply via email to