You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Chris Karcher (JIRA)" <ji...@apache.org> on 2015/12/24 03:34:49 UTC

[jira] [Commented] (CB-9703) iPad orientations can no longer differ from iPhone

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

Chris Karcher commented on CB-9703:
-----------------------------------

Would love to see this issue addressed.  I understand why [PR 207|https://github.com/apache/cordova-lib/pull/207] was merged, but it introduced a regression for those of us that want different orientation settings for iPad vs. iPhone.

[~shazron], would you consider merging the PR referenced [CB-9371|https://issues.apache.org/jira/browse/CB-9371]?  Updating the semantics of the 'default' flag to not clobber the Xcode project's settings seems like a worthwhile fix, IMO.

> iPad orientations can no longer differ from iPhone
> --------------------------------------------------
>
>                 Key: CB-9703
>                 URL: https://issues.apache.org/jira/browse/CB-9703
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: 5.0.1, 5.1.2, 5.2.0, 5.1.1, 5.3.2
>         Environment: iOS
>            Reporter: Christoph Neumann
>
> The change introduced in 93ab6b61 means that iPhone and iPad orientation values will always be the same. Unfortunately, a universal iOS project defaults to a portrait orientation for iPhone and all orientations for iPad. Because the Cordova "default" for Orientation in config.xml clears all orientation settings, there is no way to get a standard behavior of having separate defaults for iPhone and iPad.
> Some ideas:
> 1. Make "default" actually match what Apple uses as default because clearing out all the flags is *not* truly default behavior.
>   <preference name="Orientation" value="default" />
> 2. Add a platform-specific preference for iPad.
>   <platform name="ios">
>     <preference name="Orientation~iphone" value="portrait" />
>     <preference name="Orientation~ipad" value="all" />
>   </platform>



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