window.resize due to virtual keyboard causes issues with jquery mobile

前端 未结 5 1219
野的像风
野的像风 2020-12-12 19:50

I\'m hitting an unusual problem and I\'m looking for suggestions. Basically, I\'m using:

  • JQuery Mobile 1.1
  • JQuery 8.2
  • PhoneGap (Cordova) 2.1
5条回答
  •  春和景丽
    2020-12-12 20:08

    go to your androidmanifest file and in the activity, change or update to this value android:windowSoftInputMode="adjustResize"

    i know for a fact that adjustPan breaks the page so the controls are hidden. the default (unspecified) may be ok and there are other options here. i think if it is not to resize, it does not communicate to jqm that kb is shown

    so leave jqm as is, without your changes and it will do its job btw, i am using cordova 2.2, jqm 1.2 and jquery 1.8.2

提交回复
热议问题