File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -353,10 +353,11 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
353
353
maxHeight : scroll . y ,
354
354
} ;
355
355
}
356
+
356
357
if ( fixColumn ) {
357
358
scrollXStyle = { overflowX : 'scroll' } ;
358
359
scrollTableStyle = {
359
- width : scroll . x === true ? 'max-content ' : scroll . x ,
360
+ width : scroll . x === true ? 'auto ' : scroll . x ,
360
361
minWidth : '100%' ,
361
362
} ;
362
363
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe('Table.Scroll', () => {
14
14
15
15
it ( 'renders scroll.x is true' , ( ) => {
16
16
const wrapper = mount ( createTable ( { scroll : { x : true } } ) ) ;
17
- expect ( wrapper . find ( 'table' ) . props ( ) . style . width ) . toEqual ( 'max-content ' ) ;
17
+ expect ( wrapper . find ( 'table' ) . props ( ) . style . width ) . toEqual ( 'auto ' ) ;
18
18
} ) ;
19
19
20
20
it ( 'renders scroll.x is a number' , ( ) => {
You can’t perform that action at this time.
0 commit comments