cordova-plugin-keyboard icon indicating copy to clipboard operation
cordova-plugin-keyboard copied to clipboard

Unable to shrink a view

Open skycult opened this issue 8 years ago • 7 comments

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!

skycult avatar Nov 04 '15 07:11 skycult

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

cjpearson avatar Nov 06 '15 12:11 cjpearson

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

skycult avatar Nov 10 '15 08:11 skycult

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.

cjpearson avatar Nov 13 '15 00:11 cjpearson

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

lovelyelfpop avatar Aug 11 '16 07:08 lovelyelfpop

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?

KennethKwanGit avatar Oct 13 '16 07:10 KennethKwanGit

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

cjpearson avatar Oct 13 '16 12:10 cjpearson

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

tmwebs avatar Apr 03 '18 09:04 tmwebs