From: muzige2000 Date: Thu, 3 Sep 2015 08:18:53 +0000 (+0900) Subject: Modals: Fix bad paddingRight calculation; fixes #17399 X-Git-Tag: v4.0.0-alpha.2~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af4560c672bc3435565499586ae85d4bc159cd1;p=thirdparty%2Fbootstrap.git 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. --- diff --git a/js/src/modal.js b/js/src/modal.js index 128863273d..f57131e7e0 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` } }