带有Cordova的Windows Phone(通用)上的文本输入焦点问题 [英] Text input focus issue on Windows Phone (Universal) with Cordova

查看:108
本文介绍了带有Cordova的Windows Phone(通用)上的文本输入焦点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Cordova平台构建移动应用程序.该应用程序针对Android,iOS和Windows Phone8.最近,我不得不将后者更改为Windows Phone 8.1(通用).添加 winstore-jscompat库并对CSS进行几处更改之后,一切似乎都以相同的方式工作.

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.

只有不起作用的是滚动到焦点元素. 在Windows Phone 8中,它看起来像这样:

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

在WP8之前(忽略底部的较暗矩形)

Before WP8 (Ignore the darker rectangle on the bottom)

WP8之后

但是在Windows Phone Universal上,视图不适合屏幕,光标处于奇怪的位置.

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

WP8.1(通用)之前

Before WP8.1 (Universal)

以及WP8.1(通用)之后.您可以在红色箭头标记的位置看到光标.

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

我正在Visual Studio 2015 CTP 6(14.0.22609.0)中使用Cordova工具.使用/bld目录中的已构建项目可获得相同的结果.

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?

推荐答案

将Cordova升级到5.0.0版可以解决此问题.

Upgrading Cordova to version 5.0.0 resolved this problem.

这篇关于带有Cordova的Windows Phone(通用)上的文本输入焦点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆