Skip to content

Commit a294803

Browse files
committed
Set min-width to scrollbar, fix align bug
ant-design/ant-design#19986
1 parent 04de08d commit a294803

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/HeadTable.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export default function HeadTable(props: HeadTableProps, { table }) {
2929
if (scrollbarWidthOfHeader > 0 && !fixed) {
3030
headStyle.marginBottom = `-${scrollbarWidthOfHeader}px`;
3131
headStyle.paddingBottom = '0px';
32+
// https://github.com/ant-design/ant-design/pull/19986
33+
headStyle.minWidth = `${scrollbarWidthOfHeader}px`;
3234
// https://github.com/ant-design/ant-design/issues/17051
3335
headStyle.overflowX = 'scroll';
3436
headStyle.overflowY = scrollbarWidth === 0 ? 'hidden' : 'scroll';

0 commit comments

Comments
 (0)