cjpearson / cordova-plugin-keyboard

Keyboard Plugin for Cordova
177 stars 347 forks source link

Unable to shrink a view #7

Open skycult opened 8 years ago

skycult commented 8 years ago

I've tried to use your plugin in my Cordova 5.3.3 (iOS 9.1) project without success:

document.addEventListener('deviceready', function () {
  Keyboard.shrinkView(true);
  Keyboard.disableScrollingInShrinkView(true);
});

When my keyboard appear, the plugin do not shrink the view and I lose my navbar. All Keyboard events fire correctly. What's wrong? Thanks!

cjpearson commented 8 years ago

What does your viewport tag look like? Can you reproduce this in a small sample project?

skycult commented 8 years ago

Sorry for delay. In my project with Framework7 I see the form that scrolls over the top whereas when I build a default test app with cordova, the view shrink correctly. I've attached a video with the default Framework7 example and a default Cordova app example with a simple input text field.

wrong right

cjpearson commented 8 years ago

I'm sorry I'm not familiar with Framework7. Could you add the sample framework7 cordova project and I'll take a look at it. One other thing you could do is try calling Keyboard.disableScrollingInShrinkView(true); just to make sure the plugin is installed correctly.

lovelyelfpop commented 8 years ago

Same problem here, have you solved it? I have two apps, one works fine but the other does not, I don't know what is wrong

KennethKwanGit commented 8 years ago

I have the same problem. I use Cordova and installed the keyboard plugin. I am using Framework7 also. Now developing on Android and would like to ensure all form fields will not be overlapped by the keyboard. Any advice?

cjpearson commented 8 years ago

This plugin doesn't handle any resizing with Android. I think most Android devices automatically resize the webview when the keyboard appears.

tmwebs commented 6 years ago

hello, i have the same problem, have you solved it?