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

Jason Vertucio edited comment on CB-11411 at 6/10/16 4:59 PM:
--------------------------------------------------------------

in file screenorientation.ios.js, it appears that the angle for 
landscape-primary and landscape-secondary are reversed. I fixed them locally 
and this issue seems to have righted itself. However, I cannot update the 
actual ....... oh wait I think I know how to do this .......... 

so you can probably download and integrate the fix from 
https://github.com/jvjvjv/cordova-plugin-screen-orientation/commit/d57da96aaba6cd6ba7f3561185b6685f5928b400
 


was (Author: jvngd):
in file screenorientation.ios.js, it appears that the angle for 
landscape-primary and landscape-secondary are reversed. I fixed them locally 
and this issue seems to have righted itself. However, I cannot update the 
actual ....... oh wait I think I know how to do this .......... 

> screen.orientation in landscape does not use same orientation as 
> screen.lockOrientation()
> -----------------------------------------------------------------------------------------
>
>                 Key: CB-11411
>                 URL: https://issues.apache.org/jira/browse/CB-11411
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Screen Orientation
>            Reporter: Jason Vertucio
>
> I have some code to lock the screen to the current orientation. I've 
> implemented as such
> {code:javascript}
> screen.lockOrientation(screen.orientation);
> {code}
> but what ends up happening is that it just switches the screen to the 
> opposite orientation and then locks it in that position.
> Tested on iOS 9.3.2, both iPhone 6 and iPhone 6s.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to