fix: #7360 - Select: style error when resize window
parent
b51eca6679
commit
cc7ccb8495
|
@ -723,9 +723,11 @@ export default {
|
||||||
if (this.appendTo === 'self') {
|
if (this.appendTo === 'self') {
|
||||||
relativePosition(this.overlay, this.$el);
|
relativePosition(this.overlay, this.$el);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.overlay) {
|
||||||
this.overlay.style.minWidth = getOuterWidth(this.$el) + 'px';
|
this.overlay.style.minWidth = getOuterWidth(this.$el) + 'px';
|
||||||
absolutePosition(this.overlay, this.$el);
|
absolutePosition(this.overlay, this.$el);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
bindOutsideClickListener() {
|
bindOutsideClickListener() {
|
||||||
if (!this.outsideClickListener) {
|
if (!this.outsideClickListener) {
|
||||||
|
@ -806,6 +808,8 @@ export default {
|
||||||
this.queryOrientation = query;
|
this.queryOrientation = query;
|
||||||
|
|
||||||
this.matchMediaOrientationListener = () => {
|
this.matchMediaOrientationListener = () => {
|
||||||
|
console.log('kkkkk');
|
||||||
|
|
||||||
this.alignOverlay();
|
this.alignOverlay();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue