Skip to content

Commit

Permalink
fix table header minWidth of scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 4, 2019
1 parent b02ef13 commit e04590f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeadTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function HeadTable(props: HeadTableProps, { table }) {
headStyle.marginBottom = `-${scrollbarWidthOfHeader}px`;
headStyle.paddingBottom = '0px';
// https://github.com/ant-design/ant-design/pull/19986
headStyle.minWidth = `${scrollbarWidthOfHeader}px`;
headStyle.minWidth = `${scrollbarWidth}px`;
// https://github.com/ant-design/ant-design/issues/17051
headStyle.overflowX = 'scroll';
headStyle.overflowY = scrollbarWidth === 0 ? 'hidden' : 'scroll';
Expand Down

0 comments on commit e04590f

Please sign in to comment.