PhoneGap Page scroll up after Keyboard appearance in iOS devices that makes the PhoneGap page corrupted

后端 未结 6 1396
刺人心
刺人心 2020-12-17 02:10

I am trying to develop a chatting application using PhoneGap for iOS devices. The application has a header that shows the logged user, a footer where user can write his text

6条回答
  •  心在旅途
    2020-12-17 02:36

    Screen Height changes when keyboard pops up

    The cordova/phonegap application screen height or window.innerHeight value is getting reduced when the keyboard pops up, this re-sizes the contents inside & makes your screen look corrupted.

    Using Javascript, On deviceready or Application initialize set the device screen height to your wrapper/container element.

     $('#container').height(window.innerHeight);  // jQuery 
    

提交回复
热议问题