From 54d166b6756929843ff0804f5da1507fc459f767 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 30 Jan 2018 22:16:04 +0100 Subject: Use the correct property for the window width --- src/client/react/components/presentational/Schedule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/react/components/presentational/Schedule.js b/src/client/react/components/presentational/Schedule.js index e62039c..3f17adc 100644 --- a/src/client/react/components/presentational/Schedule.js +++ b/src/client/react/components/presentational/Schedule.js @@ -23,7 +23,7 @@ class Schedule extends React.Component { } updateScaling() { - const windowWidth = window.innerWidth; + const windowWidth = document.body.clientWidth; const tableNode = this.scheduleDiv.querySelector('table'); if (!tableNode) return; -- cgit v1.1