Skip to content

Commit

Permalink
fix: fix style update in forceFastUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Dec 6, 2024
1 parent 6639889 commit 1f3c7f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vtable/src/scenegraph/group-creater/cell-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,12 @@ export function updateCell(

// update text
const textMark = oldCellGroup.getChildByName('text');
if (textMark) {
if (forceFastUpdate && textMark) {
const attribute = {
textBaseline: 'top'
};
textMark.setAttributes(cellTheme.text ? (Object.assign({}, cellTheme.text, attribute) as any) : attribute);
} else if (textMark) {
const text = table.getCellValue(col, row);
const { text: textArr, moreThanMaxCharacters } = breakString(text, table);

Expand Down

0 comments on commit 1f3c7f3

Please sign in to comment.