From 3af4560c672bc3435565499586ae85d4bc159cd1 Mon Sep 17 00:00:00 2001 From: muzige2000 Date: Thu, 3 Sep 2015 17:18:53 +0900 Subject: [PATCH] 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. --- js/src/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` } }