Element: [Bug Report] Multiple Select is shaking

Created on 8 Dec 2017  ·  16Comments  ·  Source: ElemeFE/element

Element UI version

2.0.6

OS/Browsers version

macOS 10.13 Chrome 63.0.3239.84

Vue version

2.5.9

Reproduction Link

https://camo.githubusercontent.com/3c3216bc13bb88817be61521a7b068ec00159c9c/68747470733a2f2f73332e657a6769662e636f6d2f736176652f657a6769662d332d336463643937383030322e676966

Steps to reproduce

select options to make that display in rows

What is Expected?

Not shaking

What is actually happening?

Shaking just like the video shows

Most helpful comment

element-ui v2.0.10版本, 多行且页面放大110%时抖动, 查看代码是el-select__tags的clientHeight计算结果不断变化导致的, 解决的方式比较hack, 直接修改 .el-tag--small{ height: 25px; }

All 16 comments

I cannot reproduce this. Please minify your project, upload it to GitHub, and open a new issue with it.

It's probably because Select Attributes adds filterable, and you make class (.el-select__input {
vertical-align: middle;
}) not vertical-align:middle, such as vertical-align: baseline; there will be shaking

v2.0.11 exist also.

And set an extra style .el-select__input { vertical-align: base } as @heroljy commented, fixed.

In the latest version of the Chrome browser, I reproduce this. And set extra style does not work
image

add .el-select__input did not work, and some computer do not has this problem

官网可复现bug http://element.eleme.io/#/zh-CN/component/select
浏览器chrome 67.0.3396.99
滚轮缩放至90%
基础多选(Multi select),选中5个
可复现这个抖动bug

是的,90%的时候可以复现

element-ui v2.0.10版本, 多行且页面放大110%时抖动, 查看代码是el-select__tags的clientHeight计算结果不断变化导致的, 解决的方式比较hack, 直接修改 .el-tag--small{ height: 25px; }

element-ui v2.8.2版本遇到同样的问题,最新版本,官网可复现https://element.eleme.io/2.8/#/zh-CN/component/select

I solved this problem by adding style below, hope it helps

.el-select .el-input { overflow: scroll; padding-bottom: 1px; }

@skyzhao1223
It seems pretty useful,I just add padding-bottom: 1px;
anyway thanks!

padding-bottom does not work for my environment

depend on your select number. or you can try padding-bottom: 2px;

有有效的解决办法吗

padding-bottom:1px does not work ,when i resize Chrome browser,the issue will appear.

@skyzhao1223
我也解决了,只加了.el-select .el-input { padding-bottom: 1px; }

Was this page helpful?
0 / 5 - 0 ratings