Skip to content

Fix GridHScrollbar header/body desync with virtual columns (#4344)#4364

Open
lbwexler wants to merge 1 commit into
developfrom
fix/4344-hscrollbar-header-sync
Open

Fix GridHScrollbar header/body desync with virtual columns (#4344)#4364
lbwexler wants to merge 1 commit into
developfrom
fix/4344-hscrollbar-header-sync

Conversation

@lbwexler

@lbwexler lbwexler commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Explicitly sync .ag-header-viewport scrollLeft alongside .ag-center-cols-viewport in both scroll directions in GridHScrollbar.
  • Fixes header drift seen with enableFullWidthScroll: true + useVirtualColumns: true.

Fixes #4344

Test plan

  • Toolbox sample grid with virtual columns enabled - scroll horizontally and confirm headers stay aligned with body.

Explicitly sync .ag-header-viewport scrollLeft alongside .ag-center-cols-viewport
in both scroll directions. AG Grid's internal header sync can drift when virtual
columns re-render during horizontal scrolling.

Fixes #4344

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lbwexler

lbwexler commented May 6, 2026

Copy link
Copy Markdown
Member Author

Unable to meaningfully reproduce on my mac with 40 columns ands 200 rows and flags in question. Will try on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enableFullWidthScroll: headers desync from body when using virtual columns

1 participant