reactScrollbar icon indicating copy to clipboard operation
reactScrollbar copied to clipboard

scrollTop() scrollBottom() no effect when datas changeing

Open lovedabaozi opened this issue 8 years ago • 3 comments

scrollTop() scrollBottom() if I want to let it always on the Top or Bottom when data changed. but It no effect. it always on the penult area. waitting for your help. thanks!

lovedabaozi avatar Sep 19 '16 05:09 lovedabaozi

Hey, did you find workaround for the issue?

patrykcieszkowski avatar Dec 26 '16 02:12 patrykcieszkowski

Hi @FengLinZhang @patrykcieszkowski, I can add callback to refresh method which will be called after refresh. In that callback you could call scrollBottom method. Currently it doesn't work because scrollBottom change scrollbar state before refresh method finishes it's work.

Are you ok with that solution?

souhe avatar Jan 11 '17 14:01 souhe

@souhe sure, that sounds great!

patrykcieszkowski avatar Jan 11 '17 23:01 patrykcieszkowski