Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2017-03-19 04:47:57 +0300
committerMark Otto <markdotto@gmail.com>2017-03-19 04:47:57 +0300
commitae50bb784506b4aa6b79598c2000c1d20843b5fd (patch)
tree057988a85f8af88723ef9acd4eb94292740168ed /js/dist/modal.js
parent275821bbb081890ffe232d50d4778eb15bdb1d7b (diff)
grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js2
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;
};