]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix unwanted body padding when a modal opens
authorDavid Bailey <techdavid@users.noreply.github.com>
Mon, 28 Aug 2017 17:35:47 +0000 (18:35 +0100)
committerDavid Bailey <techdavid@users.noreply.github.com>
Mon, 28 Aug 2017 17:35:47 +0000 (18:35 +0100)
Prevents the test from failing

js/src/modal.js

index ab73230c8f7f1c4f5c162f73bde1959d0b4704c1..a88c1444476e32b4290ffe3a43dc4775688a0a40 100644 (file)
@@ -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()
     }