Skip to content

Commit

Permalink
feat(data-grid): Add column pinning feature
Browse files Browse the repository at this point in the history
fix horizontal scrollbar appearing when it shouldn't
  • Loading branch information
yusijs committed Dec 5, 2023
1 parent f67ffcc commit 83c8e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eds-data-grid-react/src/EdsDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export function EdsDataGrid<T>({
style={{
height: height ?? 'auto',
...parentRefStyle,
width: scrollbarHorizontal ? width : table.getTotalSize(),
width: scrollbarHorizontal ? width : 'auto',
tableLayout: scrollbarHorizontal ? 'fixed' : 'auto',
overflow: 'auto',
}}
Expand Down

0 comments on commit 83c8e24

Please sign in to comment.