Image resizing issue when keyboard open in android mobile

时间秒杀一切 提交于 2019-12-23 17:35:05

问题


Thanks for reading, i am new in cordova developing, i am use framework7 to develop hybrid app using cordova. I am putting background on login form, but in mobile when open keyboard for writing then background image is resized. I want fix position of image which is not resized when open android keyboard. Please see image below

thanks


回答1:


Try these configuration

  1. Index.html

<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, height=device-height">

  1. config.xml

<preference name="android-windowSoftInputMode" value="adjustPan" /> <preference name="fullscreen" value="false" />



来源:https://stackoverflow.com/questions/37760544/image-resizing-issue-when-keyboard-open-in-android-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!