Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react-data-grid): support autoFitColumns: false #260

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rocketBANG
Copy link

  • Adds some onScroll events to both the body and the header to allow them to stay in sync even though each has their own scroll bar.
    • Previously, when using resizableColumns and resizableColumnsOptions.autoFitColumns = false, only the body or the header could be scrolled at once and they would be out of sync
    • This changes synchronizes the scrolling between the two so scrolling horizontally on either affects the other as if you were scrolling on a shared parent
  • Also updated some styling to support as well
  • Added a story to showcase the support

Fixes #176
Fixes microsoft/fluentui#32837

…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
@rocketBANG rocketBANG requested a review from a team as a code owner November 21, 2024 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant