Skip to content

Commit

Permalink
fix: fix auto height computation problem in colHeader (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun authored Jun 28, 2023
1 parent 86c3eab commit c09674f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vtable/src/scenegraph/layout/auto-height.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export function updateAutoRowHeight(scene: Scenegraph, clearCellSize?: boolean)
// 更新行表头行高
let colHeaderHeight = 0;
colHeader?.firstChild?.forEachChildren((cell: Group) => {
colHeaderHeight += cell.attribute.height;
if (cell.role !== 'shadow-cell') {
colHeaderHeight += cell.attribute.height;
}
});
colHeader.setAttribute('height', colHeaderHeight);
cornerHeader.setAttribute('height', colHeaderHeight);
Expand Down

0 comments on commit c09674f

Please sign in to comment.