You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/02/17 16:41:08 UTC

docs commit: CB-8043 Update orientation `` documentation (close #266)

Repository: cordova-docs
Updated Branches:
  refs/heads/master 780950ce7 -> 945ee1d95


CB-8043 Update orientation `<preference>` documentation (close #266)

Update the orientation <preference> documentation as per https://github.com/apache/cordova-lib/pull/128


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/945ee1d9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/945ee1d9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/945ee1d9

Branch: refs/heads/master
Commit: 945ee1d956a93570442dd1ea03c59083daad265d
Parents: 780950c
Author: Marko <ma...@gmail.com>
Authored: Mon Feb 9 00:29:27 2015 +0200
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Feb 17 10:40:34 2015 -0500

----------------------------------------------------------------------
 docs/en/edge/config_ref/index.md | 31 ++++++++++++++++++++-----------
 1 file changed, 20 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/945ee1d9/docs/en/edge/config_ref/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/config_ref/index.md b/docs/en/edge/config_ref/index.md
index 0a67d53..fdda5b8 100644
--- a/docs/en/edge/config_ref/index.md
+++ b/docs/en/edge/config_ref/index.md
@@ -134,17 +134,6 @@ The following global preferences apply to all platforms:
 
         <preference name="Fullscreen" value="true" />
 
-- `Orientation` allows you to lock orientation and prevent the
-  interface from rotating in response to changes in orientation.
-  Possible values are `default`, `landscape`, or `portrait`. Example:
-
-        <preference name="Orientation" value="landscape" />
-
-  __NOTE__: The `default` value means _both_ landscape and portrait
-  orientations are enabled.  If you want to use each platform's
-  default settings (usually portrait-only), leave this tag out of the
-  `config.xml` file.
-
 ## Multi-Platform Preferences
 
 The following preferences apply to more than one platform, but not to
@@ -178,6 +167,26 @@ all of them:
         <preference name="HideKeyboardFormAccessoryBar" value="true"/>
 
   Applies to iOS and BlackBerry.
+  
+- `Orientation` (string, defaults to `default`): allows you to lock 
+  orientation and prevent the interface from rotating in response to 
+  changes in orientation. Possible values are `default`, `landscape` 
+  or `portrait`. Example:
+
+        <preference name="Orientation" value="landscape" />
+    
+  Additionally, you can specify any platform-specific orientation value
+  if you place the `<preference>` element within a `<platform>` element:
+  
+        <platform name="android">
+            <preference name="Orientation" value="sensorLandscape" />
+        </platform>
+  
+  Applies to Android, iOS, WP8, Amazon Fire OS and Firefox OS.
+
+  __NOTE__: The `default` value means Cordova will strip the orientation
+  preference entry from the platform's manifest/configuration file
+  allowing the platform to fallback to its default behavior.
 
 ## The _feature_ Element
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org