autosizer scrollsync grid combi scrollwidth not updated

436 views Asked by At

I am trying to use an <ScrollSync> with an embedded <AutoSizer> like this:

<ScrollSync>
  {({ clientHeight, clientWidth, onScroll, scrollHeight, scrollLeft, scrollTop, scrollWidth }) => {
    <AutoSizer onResize={this.onResize}>{
      ({ width, height }) => (
        <Grid {...alltheprops} onScroll={onScroll}/>
      )
    }</AutoSizer>
  }
</ScrollSync>

This is of course greatly simplified but will get my point across (I hope). So the onScroll of the grid is connected to the scrollsync. My problem is that whenever the autoresizer triggers because I made my window wider the scrollSync will not be notified of the new scrollWidth. Any idea how to fix this?

0

There are 0 answers