schovi / react-iscroll

React component for wrapping iScroll http://iscrolljs.com/
MIT License
236 stars 60 forks source link

dynamic content? #24

Open jackyon opened 8 years ago

jackyon commented 8 years ago

Hi,

i have tried this react iscroll, looks like it is no problem with the synchronization content, but failed when dynamic loads the contents.

plz advise if any method to solve this issue, thx.

Maggieryder commented 8 years ago

Also having problem with loading new content. Works fine for the first content, then the hasHorizontalScroll and maxScrollX values do not update after new content added, thereafter scroller does not work. I've spent days trying to troubleshoot this. Any Ideas anyone?

sinn1 commented 7 years ago

try manual refresh:

componentDidUpdate() { this.refs.iScroll._iScrollInstance.refresh() }

schovi commented 7 years ago

@jackyon @Maggieryder What is different than program in react-iscroll example? There dymic adding of content work fine.