From: David Bailey Date: Mon, 28 Aug 2017 17:44:56 +0000 (+0100) Subject: Use jQuery outerWidth instead of offsetWidth X-Git-Tag: v4.0.0-beta.2~299^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2725acc9e576059e2dbb3e4722dd5beef84e9215;p=thirdparty%2Fbootstrap.git Use jQuery outerWidth instead of offsetWidth --- diff --git a/js/src/modal.js b/js/src/modal.js index a88c144447..c8c7e3d217 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -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() }