]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use jQuery outerWidth instead of offsetWidth
authorDavid Bailey <techdavid@users.noreply.github.com>
Mon, 28 Aug 2017 17:44:56 +0000 (18:44 +0100)
committerDavid Bailey <techdavid@users.noreply.github.com>
Mon, 28 Aug 2017 17:44:56 +0000 (18:44 +0100)
js/src/modal.js

index a88c1444476e32b4290ffe3a43dc4775688a0a40..c8c7e3d2171adb197d733b4186e78f7963e28fb8 100644 (file)
@@ -426,7 +426,7 @@ const Modal = (($) => {
     }
 
     _checkScrollbar() {
-      this._isBodyOverflowing = document.body.offsetWidth < window.innerWidth
+      this._isBodyOverflowing = $('body').outerWidth(true) < window.innerWidth
       this._scrollbarWidth = this._getScrollbarWidth()
     }