From 099615feca9ee0ab8a546d8a36151cdc854aa6d0 Mon Sep 17 00:00:00 2001 From: wisonic Date: Tue, 7 Jan 2025 16:39:51 +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=E5=88=86=E9=A1=B5=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E8=87=AA=E5=AE=9A=E4=B9=89=E5=88=97=E5=AE=BD=E6=9C=AA?= =?UTF-8?q?=E9=93=BA=E6=BB=A1=20#14114?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_table.ts | 4 +++- 1 file changed, 3 insertions(+), 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 3eb0494f45..b205dc1248 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 @@ -531,11 +531,13 @@ export function getStyle(chart: Chart, dataConfig: S2DataConfig): Style { return p + n }, 0) const restWidth = width - curTotalWidth + widthArr.splice(0) if (restWidth < resultWidth) { return restWidth } + } else { + widthArr.push(resultWidth) } - widthArr.push(resultWidth) } return resultWidth }