Skip to content

Commit

Permalink
fix: data-cell文字无法交互 (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcx-seima authored Oct 14, 2022
1 parent 98c95d8 commit 1ede665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/s2-core/__tests__/bugs/issue-1624-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Data Cell Border Tests', () => {

// @ts-ignore
const meta = dataCell.getCellArea();
const borderBbox = dataCell.getChildByIndex(3).getBBox();
const borderBbox = dataCell.getChildByIndex(2).getBBox();

expect(meta.x).toEqual(borderBbox.x - borderWidth / 2);
expect(meta.y).toEqual(borderBbox.y - borderWidth / 2);
Expand Down
2 changes: 1 addition & 1 deletion packages/s2-core/src/cell/data-cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ export class DataCell extends BaseCell<ViewMeta> {
protected initCell() {
this.drawBackgroundShape();
this.drawInteractiveBgShape();
this.drawInteractiveBorderShape();
if (!this.shouldHideRowSubtotalData()) {
this.drawConditionIntervalShape();
this.drawTextShape();
this.drawConditionIconShapes();
}
this.drawInteractiveBorderShape();
if (this.meta.isFrozenCorner) {
this.drawBorderShape();
}
Expand Down

1 comment on commit 1ede665

@vercel
Copy link

@vercel vercel bot commented on 1ede665 Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.