Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12015

initial-scale values less than 1.0 are ignored on Android

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: cordova-android@5.2.2
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                macdonst Simon MacDonald
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: