mirror of https://github.com/ElemeFE/element
Table: fix summary row drifting when horizontal scrollbar exists (#9667)
parent
e129447126
commit
f255c8786e
|
@ -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' : ''
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue