round page size down always

ref #329
This commit is contained in:
Collin Barrett 2018-08-11 09:35:53 -05:00
parent 2de78d1fde
commit f2d1ea6c51

View file

@ -68,7 +68,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
updatePageSize() {
this.setState({
pageSize: window.innerHeight - (window.innerWidth > 540 ? 361 : 320) / 52
pageSize: Math.floor(window.innerHeight - (window.innerWidth > 540 ? 361 : 320) / 52)
});
}