diff --git a/packages/vtable/src/scenegraph/component/cell-content.ts b/packages/vtable/src/scenegraph/component/cell-content.ts index a3f3a91c2..4c7776dd5 100644 --- a/packages/vtable/src/scenegraph/component/cell-content.ts +++ b/packages/vtable/src/scenegraph/component/cell-content.ts @@ -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(); } }