]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Modals: Fix bad paddingRight calculation; fixes #17399
authormuzige2000 <muzige2000@gmail.com>
Thu, 3 Sep 2015 08:18:53 +0000 (17:18 +0900)
committerChris Rebert <code@chrisrebert.com>
Thu, 3 Sep 2015 08:25:38 +0000 (01:25 -0700)
We want to sum two numbers, not concatenate their stringifications.
Closes #17457 by merging a tweaked version of it.

js/src/modal.js

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