react-infinite-grid
react-infinite-grid copied to clipboard
_getGridHeight() returns truncated height due to rounding down
Edit: previous issue was fixed
I think you mean to round the pixel value at the end, otherwise you'll end up with a missing row when Math.floor rounds down. I'd suggest this instead:
Math.floor((this.props.entries.length / this.state.itemDimensions.itemsPerRow) * this.state.itemDimensions.height);
see https://github.com/ggordan/react-infinite-grid/commit/330013e4c0d89ea18836f8ee272de923a59199ce