fix page size math

ref #329
This commit is contained in:
Collin Barrett 2018-08-11 09:56:58 -05:00
parent f2d1ea6c51
commit 2f38509c49

View file

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