Skip to content

Commit

Permalink
fix: pivotTable horizontal scroll bar is abnormal when the display ar…
Browse files Browse the repository at this point in the history
…ea is small #269
  • Loading branch information
fangsmile committed Aug 31, 2023
1 parent 87387eb commit e8b05c0
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 @@ -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')
Expand Down

0 comments on commit e8b05c0

Please sign in to comment.