From 1129f4345a6475f4bb65b848cd84a424e4190b71 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 26 Dec 2019 14:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Table=20fixed=20columns=20?= =?UTF-8?q?height=201px=20bug=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit broken by 4aa8aa3 close ant-design/ant-design#20269 --- src/Table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Table.tsx b/src/Table.tsx index d1b2c69e0..6efffe198 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -317,7 +317,7 @@ class Table extends React.Component, 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(