Table: fix summary row drifting when horizontal scrollbar exists (#9667)

pull/9686/head
FuryBean 2018-02-05 19:14:20 +08:00 committed by 杨奕
parent e129447126
commit f255c8786e
1 changed files with 10 additions and 0 deletions

View File

@ -524,10 +524,20 @@
fixedHeight() {
if (this.maxHeight) {
if (this.showSummary) {
return {
bottom: 0
};
}
return {
bottom: (this.layout.scrollX && this.data.length) ? this.layout.gutterWidth + 'px' : ''
};
} else {
if (this.showSummary) {
return {
height: this.layout.tableHeight ? this.layout.tableHeight + 'px' : ''
}
}
return {
height: this.layout.viewportHeight ? this.layout.viewportHeight + 'px' : ''
};