aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormuzige2000 <[email protected]>2015-09-03 17:18:53 +0900
committerChris Rebert <[email protected]>2015-09-03 01:25:38 -0700
commit3af4560c672bc3435565499586ae85d4bc159cd1 (patch)
tree86a249f7f31e82e78c5ea274f4e8a57448649f8e
parent1872aeba79c31633c50e18acacdf795d0f972689 (diff)
downloadbootstrap-3af4560c672bc3435565499586ae85d4bc159cd1.tar.xz
bootstrap-3af4560c672bc3435565499586ae85d4bc159cd1.zip
Modals: Fix bad paddingRight calculation; fixes #17399
We want to sum two numbers, not concatenate their stringifications. Closes #17457 by merging a tweaked version of it.
-rw-r--r--js/src/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 128863273..f57131e7e 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -427,7 +427,7 @@ const Modal = (($) => {
if (this._isBodyOverflowing) {
document.body.style.paddingRight =
- bodyPadding + `${this._scrollbarWidth}px`
+ `${bodyPadding + this._scrollbarWidth}px`
}
}