diff --git a/src/app/src/components/FilterSidebar.jsx b/src/app/src/components/FilterSidebar.jsx index af1e1fb4f..44626c922 100644 --- a/src/app/src/components/FilterSidebar.jsx +++ b/src/app/src/components/FilterSidebar.jsx @@ -83,7 +83,7 @@ class FilterSidebar extends Component { } = this.props; const header = ( -
+

Open Apparel Registry

@@ -106,7 +106,7 @@ class FilterSidebar extends Component { }; const tabBar = ( - + ; const listHeaderInsetComponent = ( -
+
); - const componentSizes = [ - 64, // Navbar - 107, // Sidebar heading - 48, // Sidebar tabs - 138, // Sidebar controls - 51, // Footer - 8, // Additional padding - ]; + const nonResultListComponentHeight = ( + Array.from(document.getElementsByClassName('results-height-subtract')) + .reduce((sum, x) => sum + x.offsetHeight, 0) + ); - const resultListHeight = windowHeight - sum(componentSizes); + const resultListHeight = windowHeight - nonResultListComponentHeight; return ( diff --git a/src/app/src/components/Footer.jsx b/src/app/src/components/Footer.jsx index f99d52df0..75a97807f 100644 --- a/src/app/src/components/Footer.jsx +++ b/src/app/src/components/Footer.jsx @@ -25,7 +25,7 @@ const links = [ ]; export default () => ( -