You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Doug Davies (JIRA)" <ji...@apache.org> on 2018/05/16 19:14:00 UTC

[jira] [Updated] (CB-14093) Setting a viewport scale factor on Android causes issues

     [ https://issues.apache.org/jira/browse/CB-14093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Davies updated CB-14093:
-----------------------------
    Description: 
I'm using Cordova 7.1.0.  When I set the following viewport meta tag

<meta name="viewport" content="user-scalable=no, initial-scale=1.13, maximum-scale=1.13, minimum-scale=1.13, width=device-width">

The screen is draggable.  If I change to 1.14, then it is not.

You can reproduce this as follows:
{code:java}
cordova create demo
cd demo
cordova add platform android@7.1.0
change viewport in index.html to
<meta name="viewport" content="user-scalable=no, initial-scale=1.13, maximum-scale=1.13, minimum-scale=1.13, width=device-width">
cordova run android
{code}
My real app does this dynamically so that tablets scale the UI up appropriately.  I swear this has been working until recently, but I can't say for sure.  On iOS the viewport-fit=cover seems to be taking care of this, although I didn't add that until I needed iPhone X support.

Copying [~wtrocki] as instructed.

I tried this on iOS and without that it also scrolled around.  So not sure in what component the problem lies.

It seems very random… 1.11, 1.12, 1.14, 1.17, 1.18, 1.19 work… 1.13, 1.15, 1.16 don’t

I've tried this on a stand-alone (non-cordovan page) and it ALWAYS seems to be scrolling.  So Cordova must be intervening and helping at least some of the time.

  was:
I'm using Cordova 7.1.0.  When I set the following viewport meta tag

<meta name="viewport" content="user-scalable=no, initial-scale=1.13, maximum-scale=1.13, minimum-scale=1.13, width=device-width">

The screen is draggable.  If I change to 1.14, then it is not.

You can reproduce this as follows:
{code:java}
cordova create demo
cd demo
cordova add platform android@7.1.0
change viewport in index.html to
<meta name="viewport" content="user-scalable=no, initial-scale=1.13, maximum-scale=1.13, minimum-scale=1.13, width=device-width">
cordova run android
{code}
My real app does this dynamically so that tablets scale the UI up appropriately.  I swear this has been working until recently, but I can't say for sure.  On iOS the viewport-fit=cover seems to be taking care of this, although I didn't add that until I needed iPhone X support.

Copy [~wtrocki] as instructed.

I tried this on iOS and without that it also scrolled around.  So not sure in what component the problem lies.

 


> Setting a viewport scale factor on Android causes issues
> --------------------------------------------------------
>
>                 Key: CB-14093
>                 URL: https://issues.apache.org/jira/browse/CB-14093
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Doug Davies
>            Priority: Major
>
> I'm using Cordova 7.1.0.  When I set the following viewport meta tag
> <meta name="viewport" content="user-scalable=no, initial-scale=1.13, maximum-scale=1.13, minimum-scale=1.13, width=device-width">
> The screen is draggable.  If I change to 1.14, then it is not.
> You can reproduce this as follows:
> {code:java}
> cordova create demo
> cd demo
> cordova add platform android@7.1.0
> change viewport in index.html to
> <meta name="viewport" content="user-scalable=no, initial-scale=1.13, maximum-scale=1.13, minimum-scale=1.13, width=device-width">
> cordova run android
> {code}
> My real app does this dynamically so that tablets scale the UI up appropriately.  I swear this has been working until recently, but I can't say for sure.  On iOS the viewport-fit=cover seems to be taking care of this, although I didn't add that until I needed iPhone X support.
> Copying [~wtrocki] as instructed.
> I tried this on iOS and without that it also scrolled around.  So not sure in what component the problem lies.
> It seems very random… 1.11, 1.12, 1.14, 1.17, 1.18, 1.19 work… 1.13, 1.15, 1.16 don’t
> I've tried this on a stand-alone (non-cordovan page) and it ALWAYS seems to be scrolling.  So Cordova must be intervening and helping at least some of the time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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