From cb3de2fc764b9f126258dba1fe85081bec296045 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 13 Nov 2024 14:16:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E8=A1=A8=E8=87=AA=E5=AE=9A=E4=B9=89=E5=88=97?= =?UTF-8?q?=E5=AE=BD=E9=93=BA=E6=BB=A1=E6=97=B6=E5=AE=BD=E5=BA=A6=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/common/common_table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 aa461ec2d1..d69efad3d7 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 @@ -489,7 +489,6 @@ export function getStyle(chart: Chart, dataConfig: S2DataConfig): Style { : baseWidth * 10 const resultWidth = parseInt(tmpWidth.toFixed(0)) if (fullFilled) { - widthArr.push(resultWidth) if (widthArr.length === dataConfig.meta.length - 1) { const curTotalWidth = widthArr.reduce((p, n) => { return p + n @@ -499,6 +498,7 @@ export function getStyle(chart: Chart, dataConfig: S2DataConfig): Style { return restWidth } } + widthArr.push(resultWidth) } return resultWidth }