aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-01-30 22:16:04 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-01-30 22:16:04 +0100
commit54d166b6756929843ff0804f5da1507fc459f767 (patch)
tree6a567bcf4b1ed4c481000f85f8f534e91e5b4b12 /src/client
parent63f3b83d5f81ad4b08ecabde80b60178afcdb5d0 (diff)
Use the correct property for the window width
Diffstat (limited to 'src/client')
-rw-r--r--src/client/react/components/presentational/Schedule.js2
1 files changed, 1 insertions, 1 deletions
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;