自动填充视图已损坏(iscroll问题) [英] autocomplete view broken (iscroll issue)

查看:211
本文介绍了自动填充视图已损坏(iscroll问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在phonegap应用程式中使用自动完成选项,我得到了) p>

如果您需要的是自动完成手机差距,您最终可以在上面的教程中找到您要找的内容);


I need an autocomplete option in my phonegap app, and i got this sample . It works fine when iam working with sample, but it is broken (look at images) when iam trying to scroll in iphone simulator i think it has some css issue, how can i fix it ? Iam really got stuck with this. Thanks.

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.

my scroll wrapper:

var testScroll;

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

解决方案

you can try to use iscroll only when the target doesn't support touch-based scrolling of fixed regions. (see more http://coenraets.org/blog/phonegap-tutorial/)

If all you need is autocomplete for phone gap, you might eventually find what you are looking for in the tutorial linked above ;)

这篇关于自动填充视图已损坏(iscroll问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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