Skip to content

Commit 1129f43

Browse files
committed
🐛 Fix Table fixed columns height 1px bug again
broken by 4aa8aa3 close ant-design/ant-design#20269
1 parent 5b1ffc0 commit 1129f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class Table<ValueType> extends React.Component<TableProps<ValueType>, TableState
317317
: this.bodyTable.querySelectorAll('thead');
318318
const bodyRows = this.bodyTable.querySelectorAll(`.${prefixCls}-row`) || [];
319319
const fixedColumnsHeadRowsHeight = [].map.call(headRows, (row: HTMLElement) =>
320-
row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 1 : 'auto',
320+
row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 0.5 : 'auto',
321321
);
322322
const state = this.store.getState();
323323
const fixedColumnsBodyRowsHeight = [].reduce.call(

0 commit comments

Comments
 (0)