tnrich / react-variable-height-infinite-scroller

variable row height scroller (no precomputation of row height necessary)
29 stars 4 forks source link

question: would this work with changing heights? #17

Closed georgesboris closed 8 years ago

georgesboris commented 8 years ago

Hi, this is a question not an issue.

Would this module work with components that change their heights during their lifecycle? For instance, if my component has hidden elements and they show/hide based on the component state. Would that break the list behavior by any chance?

Sorry for not just testing it out. I'm kinda multitasking here, hopefully you "just know" the answer.

Thank you.

tnrich commented 8 years ago

Hey @georgesboris, that should not break the list behavior. The heights are never cached and the total scroll position is always calculated inexactly.

georgesboris commented 8 years ago

Thanks for the quick response!