Hacker News new | ask | show | jobs
by metabrew 4160 days ago
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.

1 comments

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.