From 6d6eaaf89dc49ff10fd2de116d41ca100955e87b Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 11 Aug 2018 09:35:53 -0500 Subject: [PATCH] round page size down always ref #329 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 9990c7ec8..36de3ccaa 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -68,7 +68,7 @@ export class Home extends React.Component, IHomeState> { updatePageSize() { this.setState({ - pageSize: window.innerHeight - (window.innerWidth > 540 ? 361 : 320) / 52 + pageSize: Math.floor(window.innerHeight - (window.innerWidth > 540 ? 361 : 320) / 52) }); }