From 0a4a30b7c62964ad5085924b551b91dfb2213cdd Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Wed, 24 Aug 2016 17:58:51 +0800 Subject: [PATCH] call syncFixedTableRowHeight only if any columns fixed --- src/Table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Table.jsx b/src/Table.jsx index 76209b08a..cf7c72a32 100644 --- a/src/Table.jsx +++ b/src/Table.jsx @@ -96,9 +96,9 @@ const Table = React.createClass({ componentDidMount() { this.resetScrollY(); - this.syncFixedTableRowHeight(); const isAnyColumnsFixed = this.isAnyColumnsFixed(); if (isAnyColumnsFixed) { + this.syncFixedTableRowHeight(); this.resizeEvent = addEventListener( window, 'resize', debounce(this.syncFixedTableRowHeight, 150) );