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

Cordova Keyboard plugin not working (KeyboardShrinksView)

    XMLWordPrintableJSON

Details

    Description

      I'm trying to get the KeyboardShrinksView option to work on iOS7 with latest cordova:

      Installed the plugin (should be in the docs):
      cordova plugin add org.apache.cordova.keyboard

      However the views won't shrink anymore on input selection.

      Here is my config.xml

          <preference name="BackupWebStorage" value="local" />
          <preference name="DisallowOverscroll" value="true" />
          <preference name="AutoHideSplashScreen" value="false" />
          <preference name="KeyboardShrinksView" value="true" />
          <preference name="ShowSplashScreenSpinner" value="true"/>
          <!-- <preference name="splashScreenDelay" value="1000" /> -->
          <content src="index.html" />
          <access origin="*" />
      

      EDIT - Looks like adding this fixed my issue...

       <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi"/>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgcrea Olivier Louvignes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: