From 1142c8e6fcd47bb9a29f47ea7e57e5d4f073b761 Mon Sep 17 00:00:00 2001 From: voidWh Date: Sun, 10 Oct 2021 00:32:29 +0900 Subject: [PATCH] Table: fix#21366.Table fixed height calculated incorrectly --- packages/table/src/table-layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table/src/table-layout.js b/packages/table/src/table-layout.js index 6365dc9b550..aba04fc5482 100644 --- a/packages/table/src/table-layout.js +++ b/packages/table/src/table-layout.js @@ -171,7 +171,7 @@ class TableLayout { flexColumns[0].realWidth = (flexColumns[0].minWidth || 80) + totalFlexWidth - noneFirstWidth; } - } else { // HAVE HORIZONTAL SCROLL BAR + } else if (bodyWidth) { // HAVE HORIZONTAL SCROLL BAR this.scrollX = true; flexColumns.forEach(function(column) { column.realWidth = column.minWidth;