0

I have an iScroll list set up and it work's perfectly fine when hard coded.

But when I use jQuery-Ajax to load in the exact same list, it sticks to the top and will not scroll down to the bottom.

$('#list1').load('lists/list1-1.html');

Has anyone experienced a similar problem or know a solution.

I've used the Web Inspector to look at the DOM and the code for the list is the exact same in both cases.

Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225

1 Answers1

0

Did you call to refresh() method after loading the list? You have to call the refresh() method when you modify the dimensions of the scrollable content, for example by adding items to a list. See section "Mastering the refresh() method" in iScroll documentation.

Pablo
  • 2,834
  • 5
  • 25
  • 45