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

HÃ¥kon Nilsen commented on CB-12015:
-----------------------------------

Wait, this is the wrong approach people.

Setting settings.setUseWideViewPort(true); as default should not be done.

In this case; initial-scale=1.1, width=device-width
- The view is 10% wider than device width, with this setting on (should be 
scaled 10%, but remain within device-width)

In this case; initial-scale=1.1 (without width=device-width)
- The view is as many pixels as the phone is - 980px in my case. 

This is NOT the way to go about fixing the initial problem. If anything, it 
should be introduced as an optional thing to be turned on.

> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to