Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any react infinite scrolling examples that support arbitrary row-heights?

Like if you need to inline images which might be variable sizes.

I think it's probably possible, with some clever caching of row heights and recalculation of some sort, in order to maintain a correctly sized spacer element at the top/bottom. Not seen any examples of it.



If you don't know the size of all rows beforehand, AFAIK, it's pretty much impossible to do this without having a jumpy scrollbar.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: