Skip to content

Commit

Permalink
πŸ› Fix Table fixed columns height 1px bug again
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 26, 2019
1 parent 5b1ffc0 commit 1129f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class Table<ValueType> extends React.Component<TableProps<ValueType>, TableState
: this.bodyTable.querySelectorAll('thead');
const bodyRows = this.bodyTable.querySelectorAll(`.${prefixCls}-row`) || [];
const fixedColumnsHeadRowsHeight = [].map.call(headRows, (row: HTMLElement) =>
row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 1 : 'auto',
row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 0.5 : 'auto',
);
const state = this.store.getState();
const fixedColumnsBodyRowsHeight = [].reduce.call(
Expand Down

0 comments on commit 1129f43

Please sign in to comment.