ionic-team / ionic-plugin-keyboard

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

Android - Closing keyboard, can't scroll back up #121

Open goodthing opened 9 years ago

goodthing commented 9 years ago

I have a form of multiple inputs, and at the very bottom there is a textarea.

When the textarea is focused, the keyboard opens and the textarea is shifted upwards, that's great. When the keyboard is closed the gap at the bottom (to fit the keyboard) is still there sometimes - I'm ok with that, but then if I scroll back up I can't scroll to the elements at the top anymore. Androidmanifest activity is set to adjustResize. If I set it to adjustPan the textarea is not visible so that's not a good solution either.

Using ionic 0.0.1-beta 14 Keyboard plugin 1.0.4 Any opinion appreciated

ituhin commented 9 years ago

@streetkid ... i had similar issues in android, and still has some in ios which I am trying to fix with css... did you try cordova.plugins.Keyboard.disableScroll(true) ?

let me know how you solved it

goodthing commented 9 years ago

@ituhin I upgraded to the latest ionic, issue still there. I tried that, also tried changing the manifest to not resize, however that makes it annoying since the user can't see what they're typing. Did the disableScroll work for you? Where did you put it?

adamduren commented 9 years ago

I am having this issue as well. Been trying to figure out a workaround for some time now. It's pretty frustrating. :disappointed:

ituhin commented 9 years ago

@streetkid you can use cordova.plugins.Keyboard.disableScroll(true) anywhere actually. I used it in the app.run i have also used keyboard-attach (directive) in the footer bar where i keep the keyboard i also do scroller bottom/height adjust using css when keyboard goes up/down using

window.addEventListener('native.keyboardshow', keyboardShowHandler); window.addEventListener('native.keyboardhide', keyboardHideHandler);

still find issues sometimes

check this thread https://github.com/driftyco/ionic/issues/2151

goodthing commented 9 years ago

Found another issue with the keyboard, when there's a large body of text in a very large textarea (whole screen), and you go to input mode, press the android back button, the cursor is still there, the scrolling is frozen.

Chuckv01 commented 8 years ago

+1

MayankLogiciel commented 8 years ago

+1 , This problems still doesn't have any solution?