Open sharpensteel opened 6 years ago
In window mode, in page with header, state.displayIndexStart calculated incorrectly, which causes emply space before react-infinite items (see screenshot)
state.displayIndexStart
example files to reproduce bug: html + jsx
i created commit that fixesgetScrollTop / setScrollTop so they take into account y-offset of Infinite component on page
getScrollTop
setScrollTop
screenshot:
@sharpensteel could you please create a PR so that it gets merged? The lib works well, except this particular bug.
any chance to get this into the codebase? This fix worked for me. 👍
In window mode, in page with header,
state.displayIndexStart
calculated incorrectly, which causes emply space before react-infinite items (see screenshot)example files to reproduce bug: html + jsx
i created commit that fixes
getScrollTop
/setScrollTop
so they take into account y-offset of Infinite component on pagescreenshot:![image](https://user-images.githubusercontent.com/12494858/32549323-0690fb2a-c49a-11e7-84d3-f59236b66eda.png)