From e8b05c034326b9767da3ed2a8046741896177790 Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Thu, 31 Aug 2023 15:47:27 +0800 Subject: [PATCH] fix: pivotTable horizontal scroll bar is abnormal when the display area is small #269 --- packages/vtable/src/core/BaseTable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vtable/src/core/BaseTable.ts b/packages/vtable/src/core/BaseTable.ts index 3b06ff814..d20b805b5 100644 --- a/packages/vtable/src/core/BaseTable.ts +++ b/packages/vtable/src/core/BaseTable.ts @@ -1031,7 +1031,7 @@ export abstract class BaseTable extends EventTarget implements BaseTableAPI { */ getColWidth(col: number): number { // const width = this.getColWidthDefine(col); - const width = this.colWidthsMap.get(col); + const width = this.colWidthsMap.get(col) ?? 0; if ( (this.widthMode === 'adaptive' && typeof width === 'number') || ((this as any).transpose && typeof width === 'number')