diff options
| author | Mark Otto <[email protected]> | 2016-04-23 14:24:08 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-04-23 14:24:08 -0700 |
| commit | 9f2ab98026cd1df4c74cdad1aa03d2931f979f91 (patch) | |
| tree | 10b02fa770aa10535d82df91bbd7d4bafe258cfa /js/src | |
| parent | 29ff8e8b1449887b0e07bd9e19befb0ce1e1cb81 (diff) | |
| parent | 1a6d0cc446259cf86d73bf7437f2ca3b095f6781 (diff) | |
| download | bootstrap-9f2ab98026cd1df4c74cdad1aa03d2931f979f91.tar.xz bootstrap-9f2ab98026cd1df4c74cdad1aa03d2931f979f91.zip | |
Merge branch 'v4-dev' into v4-forms-cleanup
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/modal.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index 202c5fe94..e2365aca7 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -408,13 +408,7 @@ const Modal = (($) => { } _checkScrollbar() { - let fullWindowWidth = window.innerWidth - if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8 - let documentElementRect = document.documentElement.getBoundingClientRect() - fullWindowWidth = - documentElementRect.right - Math.abs(documentElementRect.left) - } - this._isBodyOverflowing = document.body.clientWidth < fullWindowWidth + this._isBodyOverflowing = document.body.clientWidth < window.innerWidth this._scrollbarWidth = this._getScrollbarWidth() } |
