Skip to content

Commit

Permalink
chore: 增加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
JuZe committed Oct 26, 2023
1 parent a656da1 commit ee0507a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/s2-core/src/facet/pivot-facet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) +
Expand Down

0 comments on commit ee0507a

Please sign in to comment.