Skip to content

Commit e04590f

Browse files
committed
fix table header minWidth of scrollbar
ant-design/ant-design#19986
1 parent b02ef13 commit e04590f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HeadTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function HeadTable(props: HeadTableProps, { table }) {
3030
headStyle.marginBottom = `-${scrollbarWidthOfHeader}px`;
3131
headStyle.paddingBottom = '0px';
3232
// https://github.com/ant-design/ant-design/pull/19986
33-
headStyle.minWidth = `${scrollbarWidthOfHeader}px`;
33+
headStyle.minWidth = `${scrollbarWidth}px`;
3434
// https://github.com/ant-design/ant-design/issues/17051
3535
headStyle.overflowX = 'scroll';
3636
headStyle.overflowY = scrollbarWidth === 0 ? 'hidden' : 'scroll';

0 commit comments

Comments
 (0)