element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] el-select多选过多,出现抖动,换行input标签高度等于482px的时候,input标签高度反复在481px到482px之间设置内联样式高度

Open abc15578290610 opened this issue 5 years ago • 4 comments

Element UI version

2.13.2

OS/Browsers version

谷歌、360

Vue version

3.0.2

Reproduction Link

https://codepen.io/abc15578290610/pen/gOMJMMX?editable=true%3Dhttps%3A%2F%2Felement.eleme.io%2F

Steps to reproduce

1.换行input标签高度等于482px的时候,

2.再次选择、或者调整浏览器比例缩小到80%左右,将触发计算,此时input标签高度反复在481px到482px之间设置内联样式高度,导致整体抖动

What is Expected?

不抖动

What is actually happening?

上下抖动

abc15578290610 avatar Nov 19 '20 08:11 abc15578290610

please check your browser scale. maybe reset 100% will works

litt1e-p avatar Mar 02 '21 08:03 litt1e-p

怎么解决啊

linktoword avatar Apr 02 '21 03:04 linktoword

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.

stale[bot] avatar Apr 16 '22 14:04 stale[bot]

我也遇到了相似的问题,el-select的多选框。上下抖动的问题。我开启了postcss插件的postcss-px-to-viewport功能的时候,会出现这个问题。关闭了之后就不会有了。 上下抖动具体的情况是: 1.el-select里面的'el-input'类的input标签的style属性的height的值,循环的+1,-1 2.标记为'el-select-dropdownel-popperis-multiple select'类的dom元素的style属性的top值,循环的+1,-1,style属性的z-index值一直累计+1,不会停止。 以上情况导致当使用了postcss插件,以及选择了多个选项的时候,选项框会上下抖动。当停用postcss插件的时候就不会有这种情况。 版本是2.13.0

keeperLee avatar Jul 27 '22 03:07 keeperLee