diff options
-rw-r--r-- | src/client/react/components/presentational/Schedule.js | 2 |
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; |