Table: Trigger `doLayout` when display from `none` to others

pull/7605/head
lirilsu 2017-10-19 16:33:02 +08:00 committed by 杨奕
parent 302eb3116f
commit fa494b1952
1 changed files with 3 additions and 0 deletions

View File

@ -330,6 +330,9 @@
}
if (this.$el) {
this.isHidden = this.$el.clientWidth === 0;
if (this.isHidden && this.layout.bodyWidth) {
setTimeout(() => this.doLayout());
}
}
});
}