Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/microsoft/fluentui-blazor in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
vnbaaij committed Dec 23, 2024
2 parents cf48778 + 2b4e317 commit b189dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Components/DataGrid/FluentDataGrid.razor.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ export function enableColumnResizing(gridElement) {
let width;

if (document.body.dir === '' || document.body.dir === 'ltr') {
width = (horizontalScrollOffset + e.clientX) - headerBeingResized.offsetLeft;
width = (horizontalScrollOffset + e.clientX) - headerBeingResized.getClientRects()[0].x;
}
else {
width = headerBeingResized.offsetLeft + headerBeingResized.clientWidth - (horizontalScrollOffset + e.clientX);
width = headerBeingResized.getClientRects()[0].x + headerBeingResized.clientWidth - (horizontalScrollOffset + e.clientX);
}

const column = columns.find(({ header }) => header === headerBeingResized);
Expand Down

0 comments on commit b189dc3

Please sign in to comment.