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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • cordova-android@5.2.2
    • None
    • cordova-android
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: