Skip to content

Commit

Permalink
Table: fix#21366. When Table with fixed column used in a dialog, clos…
Browse files Browse the repository at this point in the history
…ing the dialog will trigger a resize. the fixed column height will be calculated incorrectly
  • Loading branch information
YY committed Oct 8, 2021
1 parent 492ab00 commit ceba8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table/src/table-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ceba8a9

Please sign in to comment.