Open chabb opened 5 years ago
This is a good idea. Would you mind attempting to code this & submitting a pull request? Shouldn't be too difficult. I can help you if you get stuck. Thanks.
This should not be too complicated. But then we should add some documentation around it and add and an example. I'll try to come with that.
Can we provide to client code a callback that will allow developer to pass the height/width of the children, that will allow doing call .getBoundingClientRect()... those are costly call as they trigger a layout ?
I give you an example, i know that my cells have either 50/100/150 px of height, so i could use this fact to avoid doing call to .getBoundingClientRect().. which will make thing faster ( chrome profiler says it does 0.13 ms, but then there are some layout/painting that seems to be triggered by this call )