Text input focus issue on Windows Phone (Universal) with Cordova

霸气de小男生 提交于 2019-12-12 10:22:53

问题


I'm currently building a mobile app using Cordova platform. The app was targeted on Android, iOS and Windows Phone 8. Recently, I had to change the latter to Windows Phone 8.1 (Universal). After adding the winstore-jscompat library and making couple changes to CSS everything seems to work the same way.

Only thing that is not working is scrolling to focused element. In Windows Phone 8 it looks like this:

Before WP8 (Ignore the darker rectangle on the bottom)

And After WP8

But on Windows Phone Universal the view is not going up to fit to the screen and the cursor is in weird place.

Before WP8.1 (Universal)

And After WP8.1 (Universal). You can see cursor in the place marked by a red arrow.

I'm using Cordova Tools in Visual Studio 2015 CTP 6 (14.0.22609.0). Using built project from /bld directory gives the same results.

Has anyone came across such bug? How can I fix this?


回答1:


Upgrading Cordova to version 5.0.0 resolved this problem.



来源:https://stackoverflow.com/questions/29972637/text-input-focus-issue-on-windows-phone-universal-with-cordova

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