From ceba8a93711fccf56aea96904b8065d1c820dd03 Mon Sep 17 00:00:00 2001 From: YY Date: Fri, 8 Oct 2021 17:02:04 +0900 Subject: [PATCH] Table: fix#21366. When Table with fixed column used in a dialog, closing the dialog will trigger a resize. the fixed column height will be 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..3821d7b8e06 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 && scrollYWidth) { // HAVE HORIZONTAL SCROLL BAR this.scrollX = true; flexColumns.forEach(function(column) { column.realWidth = column.minWidth;