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

Why my header is scrolling when the keyboard open ?

Open zefrench opened this issue 6 years ago • 5 comments

Hi, I have installed the plugin and I think this plugin is Exactly what I'm looking for ! But, I'm unable to prevent the header to to scroll when keyboard is open. I don't understand why cos on the video Eddy made, the header bar is not scrolling. Tested on Android device.

I've tried to install the ionic-keyboard and disable scroll with keyboard.disableScroll(true) but it does not work.

Any help would be appreciated.

zefrench avatar Feb 25 '18 19:02 zefrench

having same issue.

kingkarki avatar Mar 20 '18 05:03 kingkarki

Same issue. Tried quite a bit to address it.

marcgille avatar May 03 '18 04:05 marcgille

Me too.

DaveRand avatar May 14 '18 14:05 DaveRand

I've seen this issue happen on my end, however if this plugin: https://github.com/ionic-team/cordova-plugin-ionic-keyboard

<preference name="KeyboardResizeMode" value="ionic" /> in your config.xml you can create global listeners on keyboard open and close, and it appears to work.

If i use scrollToBottomAfterMessengerShows or autoscrollElement, then the header goes away for me at least.

I use the keyboard plugin from Ionic ,to scroll down after the keyboard is loaded, and it works for me.

gregavola avatar Jul 01 '18 20:07 gregavola

I will note here that, while this work around does work - you need to write logic to scroll down as messages are added to the dom, and at high timeout. You can't use use scrollToBottomAfterMessengerShows or autoscrollElement.

gregavola avatar Jul 11 '18 03:07 gregavola