From 8dbfb10241d2a9446b33e0ccf66bfc2cebe083dc Mon Sep 17 00:00:00 2001 From: wisonic-s <51065359+wisonic-s@users.noreply.github.com> Date: Thu, 20 Mar 2025 14:47:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=98=BE=E7=A4=BA=E6=80=BB=E8=AE=A1=E6=97=B6?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E9=81=AE=E6=8C=A1=E5=86=85=E5=AE=B9?= =?UTF-8?q?=20#15244=20#15210=20(#15425)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_table.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index aac1effabc..0ff971829e 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -1935,10 +1935,9 @@ export const summaryRowStyle = (newChart, newData, tableCell, tableHeader, showS const totalHeight = tableHeader.tableTitleHeight * headerAndSummaryHeight + tableCell.tableItemHeight * (newData.length - 1) - if (totalHeight < newChart.options.height) { - // 6 是阴影高度 + if (totalHeight < newChart.container.cfg.height) { newChart.options.height = - totalHeight < newChart.options.height - 6 ? totalHeight + 6 : totalHeight + totalHeight < newChart.container.cfg.height - 8 ? totalHeight + 8 : totalHeight } }) }