autocomplete view broken (iscroll issue)

2019-07-04 04:19发布

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);

enter image description here enter image description here

1条回答
虎瘦雄心在
2楼-- · 2019-07-04 04:40

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 ;)

查看更多
登录 后发表回答