You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the virtualized dataGrid (@fluentui-contrib/react-data-grid-react-window), the scrollbar is on the body
This is fine if the columns all fit without a horizontal overflow, however if there is some horizontal scrollbar there's no way to scroll both the body and the headers at the same time. So when autoFitColumns is set to false, this causes issues
…microsoft#176
Previously, when using resizableColumns and resizableColumnsOptions.autoFitColumns = false, only the body or the header could be scrolled and they would be out of sync
This changes synchronies the scrolling between the two so scrolling horizontally on either affects the other as if you were scrolling on a shared parent
For the virtualized dataGrid (@fluentui-contrib/react-data-grid-react-window), the scrollbar is on the body
This is fine if the columns all fit without a horizontal overflow, however if there is some horizontal scrollbar there's no way to scroll both the body and the headers at the same time. So when
autoFitColumns
is set to false, this causes issuesoverflow-x: auto
can be applied to the parent container, but that means the vertical scrollbar won't be visible unless the user scrolls all the way to the righthttps://codesandbox.io/p/sandbox/datagrid-body-overflow-forked-ygzvhs?workspaceId=2e8388ff-7617-4f14-8fb7-fe6621520941
overflow-x: auto
can be applied to theDataGridBody
, but that means theDataGridHeader
s won't scroll with the body and the column data and headers will be misalignedhttps://codesandbox.io/p/sandbox/datagrid-bodysize-bug-forked-6xqrry?file=%2Fsrc%2Fexample.tsx
(for the sandboxes, try resizing some columns to be larger and then observe the scrollbar positions/behaviours)
The text was updated successfully, but these errors were encountered: