cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
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


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 (

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:
>             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"
>           <array>
>             <string>UIInterfaceOrientationPortrait</string>
>           </array>
>         </config-file>
> {code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message