diff --git a/js/src/modal.js b/js/src/modal.js
index ab73230c8f7f1c4f5c162f73bde1959d0b4704c1..a88c1444476e32b4290ffe3a43dc4775688a0a40 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -426,7 +426,7 @@ const Modal = (($) => {
     }
 
     _checkScrollbar() {
-      this._isBodyOverflowing = document.body.clientWidth < window.innerWidth
+      this._isBodyOverflowing = document.body.offsetWidth < window.innerWidth
       this._scrollbarWidth = this._getScrollbarWidth()
     }