You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jason Vertucio (JIRA)" <ji...@apache.org> on 2016/06/10 16:48:20 UTC
[jira] [Commented] (CB-11411) screen.orientation in landscape does
not use same orientation as screen.lockOrientation()
[ https://issues.apache.org/jira/browse/CB-11411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324787#comment-15324787 ]
Jason Vertucio commented on CB-11411:
-------------------------------------
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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org