You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Juan David Nicholls Cardona (JIRA)" <ji...@apache.org> on 2017/04/18 14:30:41 UTC
[jira] [Commented] (CB-12015) initial-scale values less than 1.0
are ignored on Android
[ https://issues.apache.org/jira/browse/CB-12015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972791#comment-15972791 ]
Juan David Nicholls Cardona commented on CB-12015:
--------------------------------------------------
Guys, please accept this change. For the moment, what's the temporal solution to scale the viewport?
Thanks in advance, Nicholls
> initial-scale values less than 1.0 are ignored on Android
> ---------------------------------------------------------
>
> Key: CB-12015
> URL: https://issues.apache.org/jira/browse/CB-12015
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: cordova-android@5.2.2
> Reporter: Simon MacDonald
>
> So, the way cordova-android is right now if I use:
> <meta name="viewport" content="user-scalable=no, initial-scale=1.0" />
> Everything is good. Increasing the scale to 2.0 or 3.0 correctly makes everything bigger. However, setting:
> <meta name="viewport" content="user-scalable=no, initial-scale=0.5" />
> has no effect whatsoever.
> Going into the SystemWebViewEngine class and adding:
> settings.setUseWideViewPort(true);
> settings.setLoadWithOverviewMode(true);
> to initWebViewSettings() method then allows me to scale the viewport down.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org