ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
610 stars 275 forks source link

Input focus scroll up above keyboard ionic2 #226

Open sridharan31 opened 7 years ago

sridharan31 commented 7 years ago

When I focus an which is positioned lower than the height of the keyboard, the input is getting hidden by the keyboard when I type its come above to keyboard

I am expecting the input to get scrolled up above the keyboard when i focus the input. someone suguest call this method in app.ts enter image description here

   declare var cordova:any;
    declare var window:any;

    platform.ready().then(() => {
          // Okay, so the platform is ready and our plugins are available.
          // Here you can do any higher level native things you might need.
          StatusBar.styleDefault();

          if (window.cordova && window.cordova.plugins.Keyboard) {
            // This requires installation of https://github.com/driftyco/ionic-plugin-keyboard
            // and can only affect native compiled Ionic2 apps (not webserved).
            cordova.plugins.Keyboard.disableScroll(false);
          }
        });

in my console shows cordova objects but not working when i focus on input the page scroll up, any solution i'am stuck on it

i referred link

Cordova CLI: 6.2.0 Ionic Framework Version: 2.0.0-beta.11

Ionic CLI Version: 2.0.0-beta.37

Ionic App Lib Version: 2.0.0-beta.20

Node Version: v6.2.1

palla89 commented 7 years ago

same problem here!! Anyone solved it?

tlatforlz commented 6 years ago

Same problem.