From 9d6f5be68a96be68925f86cfabc50c0fd030bfc9 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 26 Feb 2020 16:29:11 +0800 Subject: [PATCH] :bug: improve Table scroll behavior when scroll.x is true close ant-design/ant-design#21596 --- src/BaseTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaseTable.tsx b/src/BaseTable.tsx index fb3eb61a8..9caf046ae 100644 --- a/src/BaseTable.tsx +++ b/src/BaseTable.tsx @@ -149,7 +149,7 @@ class BaseTable extends React.Component> { if (!fixed && scroll.x) { // not set width, then use content fixed width - tableStyle.width = scroll.x === true ? 'max-content' : scroll.x; + tableStyle.width = scroll.x === true ? 'auto' : scroll.x; } const Table = hasBody ? components.table : 'table';