I developed an app in phonegap . In input tag if i give type='text' it is works well . but when i give input type='password' an another field is opening over to the current field.
i hope u can understand more by seeing this image!
我希望你能通过这张照片了解更多!
if i remove the i scroll its working fine... how can i make it work even though i scroll is used
如果我移除i滚动条,它会正常工作……我怎样才能使它工作,即使我卷轴被使用?
4 个解决方案
#1
7
I've been able to avoid this be using android:windowSoftInputMode="adjustNothing". +Sandy09 is right about the overlay + position. It seems the only good way to avoid this is to prevent android from moving the contents on IME start (adjustNothing), and also be preventing the contents inside the webview from moving at all. This also seems to break all CSS3 3d/3d transforms, even simple scales and transform-origin can break it.
There is worse news tho: at some point i had password boxes working fine, then due to CSS changes it came back permanently. At some point if the browser is slowed down enough (canvas) the Window seems to lose its ability to track the input box. For us, this led to SIGSEGVs every time we pressed the 7 (seven) key on the IME. This was on ALL android devices too, Regardless of version.
I am building a PhoneGap (cordova) ANdroid app and i spent about 18 hours so far trying to find a fix, destroying the iScroll instance kind of works if the password field is on the screen and not below the scrolling area... The webkit text security CSS property is a much better fix and i've done some research on this CSS property and it seems like all the Android versions run webkit so you should be good to go for all versions of Android with this fix!
Check out this fiddle for the Login/Register page.... Use password field like that as given in the fiddle
看看这个小提琴为登录/注册页面....使用像小提琴中给出的密码字段
http://jsfiddle.net/elijahmanor/3Rmdm/1/
http://jsfiddle.net/elijahmanor/3Rmdm/1/
#4
1
This is not the problem with Phonegap.. this issue is also occurs in the webview.. in many devices like (samsung, sony, and emulator etc) the password field is overlay with the another field and rest of fields works fine. coming to HTC this issue will rises in the all type of fields..
normally this overlay field covers exact to the bottom field and looks like only one field. but when we use the iscroll to apply scrolling property, the ovelay misplace as in the above fig.