Skip to content

Commit

Permalink
Use jQuery outerWidth instead of offsetWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDavid committed Aug 28, 2017
1 parent a4fff7c commit 2725acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 2725acc

Please sign in to comment.