Vandzelyak / iscroll-js

Automatically exported from code.google.com/p/iscroll-js
MIT License
0 stars 0 forks source link

Doesn't refresh when element created outside the dom #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have been creating the scroller/wrapper and then inserting to the dom after, 
when doing this iscroll doesn't notice the height of the element has changed

i added

that.element.addEventListener('DOMNodeInsertedIntoDocument', that, false);
where the subtree listener is added

and

case 'DOMNodeInsertedIntoDocument':
    that.refresh();

in the handler

and this fixed the problem

Original issue reported on code.google.com by fred.ekr...@gmail.com on 13 Jan 2011 at 3:51

GoogleCodeExporter commented 8 years ago
thanks for the heads-up. I'll consider this for inclusion

Original comment by mat...@gmail.com on 13 Jan 2011 at 4:04