Skip to content

Commit

Permalink
[fix] fix horizontal "over scrolling" and misalignment of header row …
Browse files Browse the repository at this point in the history
…vs. data cells (#2318)

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Sep 18, 2023
1 parent d28674e commit 2714c75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/src/common/data-table/index.tsx
Expand Up @@ -347,6 +347,7 @@ export const TableSection = ({
columnWidth,
width: fixedWidth || width
};
const headerGridWidth = fixedWidth || width - browserScrollBarWidth;
const dataGridHeight = fixedHeight || height;

return (
Expand All @@ -360,6 +361,7 @@ export const TableSection = ({
{...headerGridProps}
{...gridDimension}
height={headerGridProps.height + browserScrollBarWidth}
width={headerGridWidth}
scrollLeft={scrollLeft}
onScroll={onScroll}
/>
Expand Down

0 comments on commit 2714c75

Please sign in to comment.