Skip to content

Commit 0d1ade2

Browse files
authored
Merge pull request #4831 from VisActor/fix/release_chartAxis_occor_error
refactor/pivotChart compute column width when some cell has no axis in rowHeader
2 parents 23141f2 + 691b735 commit 0d1ade2

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "refactor: when no axis compute col width logic\n\n",
5+
"type": "none",
6+
"packageName": "@visactor/vtable"
7+
}
8+
],
9+
"packageName": "@visactor/vtable",
10+
"email": "892739385@qq.com"
11+
}

packages/vtable/src/scenegraph/layout/compute-col-width.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ function computeAutoColWidth(
295295
} else if (
296296
layout.isLeftBottomCorner(col, row) ||
297297
layout.isRightTopCorner(col, row) ||
298-
layout.isRightBottomCorner(col, row)
298+
layout.isRightBottomCorner(col, row) ||
299+
layout.isAxisCell(col, row)
299300
) {
300301
// 透视图三角为无效单元格,不参与宽度计算
301302
continue;

0 commit comments

Comments
 (0)