cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [05/10] android commit: CB-12015: initial-scale values less than 1.0 are ignored on Android
Date Tue, 02 May 2017 23:43:48 GMT
CB-12015: initial-scale values less than 1.0 are ignored on Android

This closes #376


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

Branch: refs/heads/6.2.x
Commit: e3b3bcd75fbc2070ad5d80adda98840254a13c90
Parents: 5a75903
Author: Simon MacDonald <simon.macdonald@gmail.com>
Authored: Thu Apr 20 20:41:54 2017 -0400
Committer: filmaj <maj.fil@gmail.com>
Committed: Tue May 2 15:59:34 2017 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/engine/SystemWebViewEngine.java      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/e3b3bcd7/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
index 0fa0276..3be7d94 100755
--- a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
+++ b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
@@ -210,6 +210,11 @@ public class SystemWebViewEngine implements CordovaWebViewEngine {
         settings.setAppCachePath(databasePath);
         settings.setAppCacheEnabled(true);
 
+        // Enable scaling
+        // Fix for CB-12015
+        settings.setUseWideViewPort(true);
+        settings.setLoadWithOverviewMode(true);
+
         // Fix for CB-1405
         // Google issue 4641
         String defaultUserAgent = settings.getUserAgentString();


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


Mime
View raw message