From ee0507a06dc510c61f21c343176596498f637ad9 Mon Sep 17 00:00:00 2001 From: JuZe Date: Thu, 26 Oct 2023 10:42:41 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/s2-core/src/facet/pivot-facet.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/s2-core/src/facet/pivot-facet.ts b/packages/s2-core/src/facet/pivot-facet.ts index 8b947a60ff..eede09c795 100644 --- a/packages/s2-core/src/facet/pivot-facet.ts +++ b/packages/s2-core/src/facet/pivot-facet.ts @@ -747,6 +747,7 @@ export class PivotFacet extends BaseFacet { this.spreadsheet.theme.cornerCell; // 初始化角头时,保证其在树形模式下不换行 // 给与两个icon的宽度空余(tree icon 和 action icon),减少复杂的 action icon 判断 + // 额外增加 1,当内容和容器宽度恰好相等时会出现换行 const maxLabelWidth = 1 + this.spreadsheet.measureTextWidth(treeHeaderLabel, cornerCellTextStyle) +