Cascader: fix a bug that makes the browser jitter in zoom mode (#21207)

This commit is contained in:
好多大米 2021-08-09 14:38:40 +08:00 committed by GitHub
parent 390264f561
commit eb48974c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();