minRows now works for datasets larger than 1 page

Closes #154
This commit is contained in:
Tanner Linsley
2017-03-29 18:02:33 -06:00
committed by GitHub
parent 23a031b48a
commit 92c9ae2196

View File

@@ -85,9 +85,7 @@ export default React.createClass({
const endRow = startRow + pageSize
const pageRows = manual ? resolvedData : sortedData.slice(startRow, endRow)
const minRows = this.getMinRows()
const padRows = pages > 1 ? _.range(pageSize - pageRows.length)
: minRows ? _.range(Math.max(minRows - pageRows.length, 0))
: []
const padRows = _.range(Math.max(minRows - pageRows.length, 0))
const hasColumnFooter = allVisibleColumns.some(d => d.footer)