Skip to content

Commit 8f5433d

Browse files
committed
fix table max-height doesn't work (#15281)
1 parent 4cb3074 commit 8f5433d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/table/src/table-layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class TableLayout {
8686
const tableHeight = this.tableHeight = this.table.$el.clientHeight;
8787
if (this.height !== null && (!isNaN(this.height) || typeof this.height === 'string')) {
8888
const footerHeight = this.footerHeight = footerWrapper ? footerWrapper.offsetHeight : 0;
89-
this.bodyHeight = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
89+
this.bodyHeight = parseInt(this.height, 10) - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
9090
}
9191
this.fixedBodyHeight = this.scrollX ? this.bodyHeight - this.gutterWidth : this.bodyHeight;
9292

0 commit comments

Comments
 (0)