Commit 3af4560c authored by muzige2000's avatar muzige2000 Committed by Chris Rebert

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.
parent 1872aeba
...@@ -427,7 +427,7 @@ const Modal = (($) => { ...@@ -427,7 +427,7 @@ const Modal = (($) => {
if (this._isBodyOverflowing) { if (this._isBodyOverflowing) {
document.body.style.paddingRight = document.body.style.paddingRight =
bodyPadding + `${this._scrollbarWidth}px` `${bodyPadding + this._scrollbarWidth}px`
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment