jquery - 自动完成 View 损坏(滚动问题)

标签 jquery jquery-ui cordova autocomplete iscroll4

我的phonegap应用程序需要一个自动完成选项,我得到了this sample 。当 iam 使用示例时它工作正常,但是当 iam 尝试在 iphone 模拟器中滚动时它就损坏了(查看图像),我认为它有一些 css 问题,我该如何修复它?我真的被这个问题困住了。谢谢。

Update1: this issue arises when my iscroll started to scroll. Then, my list also starting to scroll (as i shown in below image).

Update2: my jsfiddle here, enter 'a' in products input field - a list will appear, then scroll; you can see the issue.

我的滚动包装:

var testScroll;

function loaded() {
  testScroll = new iScroll('wrapper', {
  //check js fiddle for more 
 }
}false);

enter image description here enter image description here

最佳答案

仅当目标不支持固定区域的基于触摸的滚动时,您才可以尝试使用 iscroll。 (查看更多http://coenraets.org/blog/phonegap-tutorial/)

如果您需要的只是自动完成电话间隙,您最终可能会在上面链接的教程中找到您想要的内容;)

关于jquery - 自动完成 View 损坏(滚动问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19739895/

相关文章:

java - 检测 iOS Cordova 4.0 应用程序中的内存泄漏

javascript - jquery .html() 未获取最新选定值

javascript - div 可见性不断切换

php - 如何使用 jQuery 和 MySQL 在同一页面上提交和显示?

javascript - jQuery datepicker 没有正确更新值

c# - jQuery DateTimePicker : Post datetime data to ViewModel in MVC3 action using jQuery $. 后()

javascript - 无法在 jQuery 中获取属性、句点

javascript - 使用 jQuery 调整加减按钮

android - 使用 WKWebEngine 不会在 iOS 中设置/存储 Cookie

javascript - 未捕获的类型错误 : Cannot read property 'length' of undefined