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 }