From 2bca1f208c143f62441443d18af498a39aa3f019 Mon Sep 17 00:00:00 2001 From: Rui-Sun Date: Thu, 13 Jun 2024 20:22:31 +0800 Subject: [PATCH] fix: add useOneRowHeightFillAll clear in recalculateRowHeights() --- .../fix-row-height-update-pref_2024-06-13-12-21.json | 10 ++++++++++ packages/vtable/src/scenegraph/scenegraph.ts | 1 + 2 files changed, 11 insertions(+) create mode 100644 common/changes/@visactor/vtable/fix-row-height-update-pref_2024-06-13-12-21.json diff --git a/common/changes/@visactor/vtable/fix-row-height-update-pref_2024-06-13-12-21.json b/common/changes/@visactor/vtable/fix-row-height-update-pref_2024-06-13-12-21.json new file mode 100644 index 000000000..5427c1ac8 --- /dev/null +++ b/common/changes/@visactor/vtable/fix-row-height-update-pref_2024-06-13-12-21.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vtable", + "comment": "fix: optimize row height update when useOneRowHeightFillAll", + "type": "none" + } + ], + "packageName": "@visactor/vtable" +} \ No newline at end of file diff --git a/packages/vtable/src/scenegraph/scenegraph.ts b/packages/vtable/src/scenegraph/scenegraph.ts index 83b151980..caabf5c01 100644 --- a/packages/vtable/src/scenegraph/scenegraph.ts +++ b/packages/vtable/src/scenegraph/scenegraph.ts @@ -809,6 +809,7 @@ export class Scenegraph { } recalculateRowHeights() { + this.table.internalProps.useOneRowHeightFillAll = false; computeRowsHeight(this.table, 0, this.table.rowCount - 1, true, true); }