Commit f255c878 authored by FuryBean's avatar FuryBean Committed by 杨奕

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

parent e1294471
...@@ -524,10 +524,20 @@ ...@@ -524,10 +524,20 @@
fixedHeight() { fixedHeight() {
if (this.maxHeight) { if (this.maxHeight) {
if (this.showSummary) {
return {
bottom: 0
};
}
return { return {
bottom: (this.layout.scrollX && this.data.length) ? this.layout.gutterWidth + 'px' : '' bottom: (this.layout.scrollX && this.data.length) ? this.layout.gutterWidth + 'px' : ''
}; };
} else { } else {
if (this.showSummary) {
return {
height: this.layout.tableHeight ? this.layout.tableHeight + 'px' : ''
}
}
return { return {
height: this.layout.viewportHeight ? this.layout.viewportHeight + 'px' : '' height: this.layout.viewportHeight ? this.layout.viewportHeight + 'px' : ''
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment