Skip to content

Commit

Permalink
fix: fix container dom update in canvas mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Jun 20, 2024
1 parent badef20 commit 6247643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vtable/src/core/BaseTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,7 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI {
this.customRender = customRender;
// 更新protectedSpace
const internalProps: IBaseTableProtected = this.internalProps;
if (Env.mode !== 'node') {
if (Env.mode !== 'node' && !options.canvas) {
updateRootElementPadding(internalProps.element, this.padding);
}

Expand Down

0 comments on commit 6247643

Please sign in to comment.