Update modal.js
This commit is contained in:
parent
807e528fea
commit
5ce207dd86
1 changed files with 2 additions and 0 deletions
|
|
@ -513,7 +513,9 @@ class Modal extends BaseComponent {
|
|||
|
||||
const actualValue = element.style[cssProp]
|
||||
const computedValue = window.getComputedStyle(element)[cssProp]
|
||||
|
||||
Manipulator.setDataAttribute(element, cssProp, actualValue)
|
||||
|
||||
if (cssProp === 'marginRight') {
|
||||
element.style[cssProp] = `${Number.parseFloat(computedValue) - this._scrollbarWidth}px`
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue