mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
Cascader: fix a bug that makes the browser jitter in zoom mode (#21207)
This commit is contained in:
parent
390264f561
commit
eb48974c14
@ -640,7 +640,7 @@ export default {
|
||||
}
|
||||
|
||||
if (tags) {
|
||||
const { offsetHeight } = tags;
|
||||
const offsetHeight = Math.round(tags.getBoundingClientRect().height);
|
||||
const height = Math.max(offsetHeight + 6, inputInitialHeight) + 'px';
|
||||
inputInner.style.height = height;
|
||||
this.updatePopper();
|
||||
|
Loading…
Reference in New Issue
Block a user