cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12015) initial-scale values less than 1.0 are ignored on Android
Date Mon, 14 Aug 2017 22:19:00 GMT

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

Kyle commented on CB-12015:
---------------------------

I agree with [~hnilsen] here. Updating to the latest version of cordova caused all of our
pages to load fully zoomed out, like they were being viewed in "desktop mode" in mobile chrome
or something. This might be caused by our html files not including the proper meta tags, but
they've always worked before and it's not feasible for me to go edit hundreds of html files
right now.

Thankfully, our implementation uses cordova as a library in our custom in-house android application,
so I can simply remove the 2 lines that were added for this fix. However, that also causes
maintenance issues with our code going forward, as we have to remember to remove these 2 lines
each time we update cordova versions. Hopefully a new fix will be incoming that somehow makes
this optional or returns to the prior version.

Thanks!

> 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: cordova-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.4.14#64029)

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


Mime
View raw message