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

w8ntj3qf  于 2022-10-23  发布在  其他
关注(0)|答案(7)|浏览(188)

Element UI version

2.13.0

OS/Browsers version

windows 10 / Chrome 80

Vue version

2.6.11

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

zvokhttg

zvokhttg1#

Translation of this issue:

Element UI version

2.13.0

OS/Browsers version

windows 10 / Chrome 80

Vue version

2.6.11

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

ljsrvy3e

ljsrvy3e3#

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

ohfgkhjo

ohfgkhjo4#

@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.

wyyhbhjk

wyyhbhjk6#

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

work for sure, but scroll bar still...

wmtdaxz3

wmtdaxz37#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题