问题描述
我需要一个自动完成选项,在我的PhoneGap的应用程序,我得到了。当IAM样本工作它工作正常,但它坏了(看照片),当IAM试图iPhone模拟器我认为它有一些CSS问题进行滚动,如何解决呢?荫真的卡住了这一点。谢谢。
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:这个问题出现时,我开始iscroll滚动。然后,我的名单也开始滚动(如下所示的图像I)。
UPDATE2:
我,输入A的产品输入字段 - 列表会出现,然后滚动;你可以看到这个问题。
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);
推荐答案
您可以尝试使用iscroll只有当目标不支持固定区域的触摸式滚动。 (详见)
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问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!