diff options
author | Mark Otto <markdotto@gmail.com> | 2017-03-19 04:47:57 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-03-19 04:47:57 +0300 |
commit | ae50bb784506b4aa6b79598c2000c1d20843b5fd (patch) | |
tree | 057988a85f8af88723ef9acd4eb94292740168ed /js/dist/modal.js | |
parent | 275821bbb081890ffe232d50d4778eb15bdb1d7b (diff) |
grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r-- | js/dist/modal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js index 73d203eda0..8138f19490 100644 --- a/js/dist/modal.js +++ b/js/dist/modal.js @@ -436,7 +436,7 @@ var Modal = function ($) { var scrollDiv = document.createElement('div'); scrollDiv.className = ClassName.SCROLLBAR_MEASURER; document.body.appendChild(scrollDiv); - var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; + var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); return scrollbarWidth; }; |