0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

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.
This commit is contained in:
muzige2000 2015-09-03 17:18:53 +09:00 committed by Chris Rebert
parent 1872aeba79
commit 3af4560c67

View File

@ -427,7 +427,7 @@ const Modal = (($) => {
if (this._isBodyOverflowing) {
document.body.style.paddingRight =
bodyPadding + `${this._scrollbarWidth}px`
`${bodyPadding + this._scrollbarWidth}px`
}
}