Skip to content

[WC-3390] DG2: improve virtual scroll behavior and height logic#2193

Open
yordan-st wants to merge 5 commits intomainfrom
fix/WC-3390_virtual-scroll-bug
Open

[WC-3390] DG2: improve virtual scroll behavior and height logic#2193
yordan-st wants to merge 5 commits intomainfrom
fix/WC-3390_virtual-scroll-bug

Conversation

@yordan-st
Copy link
Copy Markdown
Contributor

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

  • Virtual scrolling got stuck showing only the initial page of rows when the grid had many columns. The overflow detection compared measurements from different sources, incorrectly skipping the offset needed to make the body scrollable. Fixed by using consistent measurements for the overflow check and adding a fallback that loads more rows when the grid has no scrollbar but more data is available.

@yordan-st yordan-st requested a review from a team as a code owner April 28, 2026 13:06
@yordan-st yordan-st force-pushed the fix/WC-3390_virtual-scroll-bug branch 5 times, most recently from 28d92e3 to a3e363f Compare April 30, 2026 13:09
[gridSizeStore]
);

useEffect(() => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This use effect runs on every rerender. That's by design?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be fixed in GridSizeStore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The no-dep-array was pre-existing. But I moved new logic to GridSizeStore

@yordan-st yordan-st force-pushed the fix/WC-3390_virtual-scroll-bug branch from f72a5e8 to 6a14738 Compare May 4, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants