Skip to content

Commit

Permalink
fix: cell content height update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Nov 19, 2024
1 parent 92471c0 commit d729182
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vtable/src/scenegraph/component/cell-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ export class CellContent extends Group {
updateHeight(height: number) {
this._cellHeight = height;
this._cellWidth = this._originCellWidth;
const textMark = this.getChildByName('text', true);
if (textMark) {
textMark.setAttribute('heightLimit', height);
}

this.layout();
}
}

0 comments on commit d729182

Please sign in to comment.