Skip to content

Commit

Permalink
revert: compute table width
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Mar 10, 2023
1 parent a5da6fb commit 04f77ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useAntdResizableHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function useAntdResizableHeader<ColumnType extends ColumnOriginType<ColumnType>>
loop(cls[i].children as ColumnType[])
} else {
if (!cls[i].hideInTable) {
width += cls[i].width ?? defaultWidth
width += Number(cls[i].width) || defaultWidth
}
}
}
Expand Down

0 comments on commit 04f77ad

Please sign in to comment.