cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: CB-12015: initial-scale values less than 1.0 are ignored on Android
Date Mon, 01 May 2017 18:20:39 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/master 2704ee54c -> ee1165ea3


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/ee1165ea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/ee1165ea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/ee1165ea

Branch: refs/heads/master
Commit: ee1165ea332391b81cef181e6f8f928c883673f2
Parents: 2704ee5
Author: Simon MacDonald <simon.macdonald@gmail.com>
Authored: Thu Apr 20 20:41:54 2017 -0400
Committer: Joe Bowser <bowserj@apache.org>
Committed: Mon May 1 11:20:25 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/ee1165ea/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