Element: [bug report] when the El dialog is displayed, the padding right: 17px will be added to the body

Created on 4 Mar 2020  ·  4Comments  ·  Source: ElemeFE/element

Element UI version

2.13.0

OS/Browsers version

windows 10 / Chrome 80

Vue version

2.6.11

Reproduction Link

https://codepen.io/xuxiantao/pen/mdJMvxM

Steps to reproduce

  1. 点击button
  2. Ctrl Shift C选中dialog的modal层

What is Expected?

body出现样式保持不变

What is actually happening?

body出现padding-right: 17px
image

Most helpful comment

set "lock-scroll" to false, it works for me.

All 4 comments

Translation of this issue:

Element UI version

2.13.0

OS/Browsers version

windows 10 / Chrome 80

Vue version

2.6.11

Reproduction Link

https://codepen.io/xuxiantao/pen/mdJMvxM

Steps to reproduce

  1. Click button

  2. Ctrl Shift C select the modal layer of dialog

    What is Expected?

Body appearance style remains unchanged

What is actually happening?

The body appears padding right: 17px
image

same issue

set "lock-scroll" to false, it works for me.

@selbest Thanks a lot! The "padding-right" looks like to fix the flash when using "lock-scroll" (when the scroll bar disappears), but sometimes the 'lock-scroll' doesn't work. And today it works normally. It really confuses me.

Was this page helpful?
0 / 5 - 0 ratings