Skip to content

Commit

Permalink
fuck me
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri865 committed Jan 31, 2025
1 parent bae6d94 commit cddb1bf
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ export function useGridDimensions(apiRef: RefObject<GridPrivateApiCommunity>, pr

function setCSSVariables(root: HTMLElement, dimensions: GridDimensions) {
const set = (k: string, v: string) => root.style.setProperty(k, v);
set('--DataGrid-width', `${dimensions.viewportOuterSize.width}px`);
set('--DataGrid-hasScrollX', `${Number(dimensions.hasScrollX)}`);
set('--DataGrid-hasScrollY', `${Number(dimensions.hasScrollY)}`);
set('--DataGrid-scrollbarSize', `${dimensions.scrollbarSize}px`);
Expand Down

0 comments on commit cddb1bf

Please sign in to comment.