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

前端 未结 5 1233
野的像风
野的像风 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:24

    I had a problem where the virtual keyboard would extend the viewport, showing the contents underneath(an external panel).

    I solved by setting the css height based on the window height:

    $('#page').css('height', $(window).height());
    

提交回复
热议问题