In my web app my login page is deranged when opening the keyboard. In android development this can be solved by modifying the android:windowSoftInputMode="stateVisible|adjustResize"
in the manifest file. Is there any way that this can be done for web-applications developed in Javascript
?

- 3,580
- 22
- 82
- 146
-
[http://stackoverflow.com/questions/2593139/ipad-web-app-detect-virtual-keyboard-using-javascript-in-safari](http://stackoverflow.com/questions/2593139/ipad-web-app-detect-virtual-keyboard-using-javascript-in-safari) check this link – Arka Apr 18 '14 at 12:25
-
What do you mean by "deranged"? Can you give a bit more information then maybe someone can help. And this webapp is "deranged" on Android? – jedison Apr 18 '14 at 16:29
-
You are referring to a manifest file, what framework are you using for developing on android? – caffeinated.tech Apr 19 '14 at 09:25
1 Answers
If your webapp is becoming deranged when the keyboard is scrolling up, often times it's more of a css problem then a javascript problem. Since in most browsers the top of the keyboard will become the new bottom of the page when the keyboard is scrolled up. For instance if you set an element to position:absolute; bottom:0;
you can see that the element will treat the top of the keyboard as the bottom of the page.
So if you have a lot of elements with position:relative;
or alot of elements that positions are based on the bottom of the window you could end up with a deranged view when the keyboard scrolls up. Additionally there is some functions and calls you can make in javascript using window
that allow you to change functionality of the window on keyboard up. That being said it is hard to say why your webpage is becoming deranged with such little information.

- 1,325
- 3
- 12
- 25