bvaughn / react-window

React components for efficiently rendering large lists and tabular data
https://react-window.now.sh/
MIT License
15.54k stars 779 forks source link

Support wrapped lists #718

Open GNUGradyn opened 1 year ago

GNUGradyn commented 1 year ago

Hello. I am using your library to build an emoji picker as part of a larger project. I have implemented it, but run into a problem. Since the list of emojis wraps (renders left>right and then top>bottom), it only renders a few emojis. You can scroll past the emojis. image It is technically possible to circumvent this using a dynamically sized grid with the following logic

but this is quite complex for such a simple task.

Add support for wrapped lists

GNUGradyn commented 1 year ago

I tried to implement the more complex method I described, but concluded this is actually not possible since I do not see any way 1 element can span multiple rows.