diff options
| author | muzige2000 <[email protected]> | 2015-09-03 17:18:53 +0900 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-09-03 01:25:38 -0700 |
| commit | 3af4560c672bc3435565499586ae85d4bc159cd1 (patch) | |
| tree | 86a249f7f31e82e78c5ea274f4e8a57448649f8e | |
| parent | 1872aeba79c31633c50e18acacdf795d0f972689 (diff) | |
| download | bootstrap-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.js | 2 |
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` } } |
