fix math for auto-pageSize

This commit is contained in:
Collin M. Barrett 2019-08-06 15:58:13 -05:00
parent 11b87af302
commit 0d3e659dc9

View file

@ -36,7 +36,7 @@ export class AllListsTable extends React.Component<{}, State> {
}
updatePageSize() {
const pageSize = Math.floor((window.innerHeight - 450) / 42);
const pageSize = Math.floor((window.innerHeight - 275.5) / 59);
this.setState({
pageSize: pageSize,
pageSizeOptions: [5, 10, 20, 500, 2000, pageSize].sort((a, b) => a - b).map(String)