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