Skip to content

Commit

Permalink
store initial row height correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmixAT committed Dec 9, 2024
1 parent 646acf2 commit 6ea1f3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/components/table/UITable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ const UITable: FC<TableProps & IExtendableTable & IComponentConstants> = (props)
let rowHeight = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("--table-data-height"))
if (rowHeight < 16) {
setRowHeight(24)
cellHeights.current.set('initial', 24);
} else {
setRowHeight(rowHeight + 8);
cellHeights.current.set('initial', rowHeight + 8);
}
cellHeights.current.set('initial', rowHeight);
}, [props.designerUpdate])

const updateRowHeightTimeout = useRef<number>();
Expand Down

0 comments on commit 6ea1f3c

Please sign in to comment.