jquery mobile popup widget doesn't move when device's (android) keyboard is active

前端 未结 1 791
名媛妹妹
名媛妹妹 2020-12-20 08:33

I have a jquery-mobile (1.3.1) + phonegap app in which I am using a pop-up widget (This app is for Android-any vresion). This popup is for sign-in (it has Username, Password

相关标签:
1条回答
  • 2020-12-20 09:06

    You can reposition a popup once an input field is focused within it.

    $("#popupLogin input, #popupLogin textarea").on("focus", function () {
      $("#popupLogin").popup("reposition", {
        y: 0 /* move it to top */
      });
    });
    

    Demo

    0 讨论(0)
提交回复
热议问题