问题
In my cordova-powered app I disabled the zoom. Though on a page with an input field, if the soft-keyboard shows-up, the view gets automatically zoomed to include the whole page:
when the soft-keyboard disappears, the page remains zoomed.
How to get rid of this zooming? I took a look at softkeyboard plugin
but it didn't give me any hints...
回答1:
found an answer myself. I had to add the windowSoftInputMode
attribute to make it work:
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
....
android:windowSoftInputMode="adjustNothing" >
来源:https://stackoverflow.com/questions/22715485/soft-keyboard-makes-the-cordova-view-shrink