cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11442) preference for orientation sets upside-down when only "portrait" is configured
Date Wed, 22 Jun 2016 09:35:57 GMT

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

Shazron Abdullah commented on CB-11442:
---------------------------------------

This is, unfortunately, by design. Portrait will set both orientations since there is no current
way to just set "portraitupsidedown" currently. If we add support for platform specific orientations,
this issue will be solved (we actually have "all" for ios as a custom orientation).

Allowed values for all platforms: default, landscape, portrait (http://cordova.apache.org/docs/en/6.x/config_ref/index.html)

There needs to be a re-think of orientation support here so it satisfies the needs of a particular
platform as well as all other platforms -- i.e. documentation, implementation



> preference for orientation sets upside-down when only "portrait" is configured
> ------------------------------------------------------------------------------
>
>                 Key: CB-11442
>                 URL: https://issues.apache.org/jira/browse/CB-11442
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.1.1
>            Reporter: Philipp Kursawe
>            Assignee: Shazron Abdullah
>              Labels: triaged
>
> When setting the orientation to portrait like this:
> {code}
> <preference name="orientation" value="portrait"/>
> {code}
> the cordova ios engine also sets the "upside-down" orientation. I had to resort to overwrite
the plist values myself
> {code}
> <config-file target="*-Info.plist" parent="UISupportedInterfaceOrientations" overwrite="true">
>           <array>
>             <string>UIInterfaceOrientationPortrait</string>
>           </array>
>         </config-file>
>         <config-file target="*-Info.plist" parent="UISupportedInterfaceOrientations~ipad"
overwrite="true">
>           <array>
>             <string>UIInterfaceOrientationPortrait</string>
>           </array>
>         </config-file>
> {code}



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


Mime
View raw message