Skip to content

Commit

Permalink
fix horizontal scrolling
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta committed Sep 18, 2023
1 parent 8bb0d46 commit 7adb859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/src/common/data-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export const TableSection = ({
columnWidth,
width: fixedWidth || width
};
const headerGridWidth = fixedWidth || width - browserScrollBarWidth;
const dataGridHeight = fixedHeight || height;

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

0 comments on commit 7adb859

Please sign in to comment.