mirror of https://github.com/ElemeFE/element
Table: equal behaviour for height and max-height (#14660)
parent
8bae5a79f9
commit
9c620409fc
|
@ -585,9 +585,7 @@
|
||||||
};
|
};
|
||||||
} else if (this.maxHeight) {
|
} else if (this.maxHeight) {
|
||||||
return {
|
return {
|
||||||
'max-height': (this.showHeader
|
'max-height': this.layout.bodyHeight ? this.layout.bodyHeight + 'px' : ''
|
||||||
? this.maxHeight - this.layout.headerHeight - this.layout.footerHeight
|
|
||||||
: this.maxHeight - this.layout.footerHeight) + 'px'
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Reference in New Issue