I'm using the react-virtualized ScrollSync
component to sync the scrolling of a couple fixed headers — very similar to the example in the docs.
My question: is it possible to provide an initial scrollTop
value to ScrollSync
(or its children)? I realize that the better way to do this would be through use of scrollToRow
on the Grid
component that controls the scroll position — for what it's worth, I am using scrollToColumn
for this purpose. But because, vertically, I'm only rendering one very tall cell, scrollToRow
doesn't provide the fidelity needed.
I do realize that this is a slightly bastardized use of a grid component, but it all works quite nicely as a horizontal, infinitely loading scroller, while allowing me to re-use an existing component. If I could just set an initial scrollTop
, I'd be golden.
Thanks.