From: David Bailey Date: Mon, 28 Aug 2017 17:35:47 +0000 (+0100) Subject: Fix unwanted body padding when a modal opens X-Git-Tag: v4.0.0-beta.2~299^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4fff7c38397fa8fb59891cc94807be020ac37ec;p=thirdparty%2Fbootstrap.git Fix unwanted body padding when a modal opens Prevents the test from failing --- diff --git a/js/src/modal.js b/js/src/modal.js index ab73230c8f..a88c144447 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() }