Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Soft-keyboard makes the cordova-view shrink

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:

Start state

with soft-keyboard

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...

like image 733
injecteer Avatar asked Oct 17 '25 04:10

injecteer


1 Answers

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" >
like image 68
injecteer Avatar answered Oct 18 '25 19:10

injecteer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!