From 284a8e70e9b520d1bb4409e5185d02e7ca4e78df Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Thu, 23 Jul 2020 21:49:07 +0800 Subject: [PATCH] update maxPopHeight --- components/apolloTable/component/Table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index f671fa0..b50f468 100644 --- a/components/apolloTable/component/Table.tsx +++ b/components/apolloTable/component/Table.tsx @@ -423,7 +423,7 @@ export default class AirTable extends Component { { columnIndex, key, rowIndex, style }: any, ) => { const { columns, dataSource, tableHeight = 0 } = this.state; - const { headerHeight } = this.config; + const { headerHeight, rowHeight } = this.config; const { emitChangeCell, paginationConfig, @@ -481,7 +481,7 @@ export default class AirTable extends Component { cellData, }); - let maxPopHeight = (tableHeight - headerHeight) / 2; + let maxPopHeight = (tableHeight - headerHeight - rowHeight - 10) / 2; if (maxPopHeight > 250) { maxPopHeight = 250; } -- 2.21.0