diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index f671fa002bf6e9236553e3df9f2e8e0eefe44265..b50f4684c4cf6c3a5cc240a5b62785e3f4099e35 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; }