We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90adbbd commit 633d607Copy full SHA for 633d607
src/Table.tsx
@@ -475,7 +475,13 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
475
if (tableLayout) {
476
return tableLayout;
477
}
478
- if (fixHeader || fixColumn || flattenColumns.some(({ ellipsis }) => ellipsis)) {
+ // https://github.com/ant-design/ant-design/issues/25227
479
+ // When scroll.x is max-content, no need to fix table layout
480
+ // it's width should stretch out to fit content
481
+ if (fixColumn) {
482
+ return scroll.x === 'max-content' ? 'auto' : 'fixed';
483
+ }
484
+ if (fixHeader || flattenColumns.some(({ ellipsis }) => ellipsis)) {
485
return 'fixed';
486
487
return 'auto';
0 commit comments