Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] fix horizontal "over scrolling" and misalignment of header row vs. data cells (#2318)

Igor D2714c755118f
diff --git a/src/components/src/common/data-table/index.tsx b/src/components/src/common/data-table/index.tsx
index 9abf038d5..a7d1c4dfb 100644
--- a/src/components/src/common/data-table/index.tsx
+++ b/src/components/src/common/data-table/index.tsx
@@ -347,6 +347,7 @@ export const TableSection = ({
columnWidth,
width: fixedWidth || width
};
+ const headerGridWidth = fixedWidth || width - browserScrollBarWidth;
const dataGridHeight = fixedHeight || height;
return (
@@ -360,6 +361,7 @@ export const TableSection = ({
{...headerGridProps}
{...gridDimension}
height={headerGridProps.height + browserScrollBarWidth}
+ width={headerGridWidth}
scrollLeft={scrollLeft}
onScroll={onScroll}
/>