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
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.
File:packages/pluggableWidgets/datagrid-web/src/model/stores/GridSize.store.ts lines 116–119 Note: The new bumpPage() fallback (called when scrollHeight <= clientHeight but hasMoreItems is true) has no corresponding unit test. The store is otherwise untested. The scenario — grid body does not overflow but more items exist — is precisely the regression risk described in the PR. A unit test that mocks gridBodyRef.current with matching scrollHeight/clientHeight values and asserts setPageAction is called would lock this behaviour in.
File:packages/pluggableWidgets/datagrid-web/src/model/stores/GridSize.store.ts line 117 Note: The method already returns early at line 79 when !this.hasMoreItems, so the guard this.hasMoreItems && on line 117 is always true by the time execution reaches it. It is harmless but adds noise; the condition can be simplified to just gridBody && gridBody.scrollHeight <= gridBody.clientHeight.
Positives
The CHANGELOG entry under [Unreleased] is well-written: end-user language, describes both the symptom ("showing only the initial page of rows") and the trigger condition ("many columns") without exposing implementation details.
The fix is surgical — only 5 lines added, no unrelated changes pulled in, and the existing early-exit guard at line 79 ensures the new code only runs during virtual scrolling with pending data.
Updated the Playwright screenshot baseline alongside the fix, preventing a stale-baseline CI failure.
It feels this has to be consolidated with #2167 and addressed together, while those might be different issues, they are caused by the came code which needs an overhaul/thinking though session.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request type
Bug fix (non-breaking change which fixes an issue)
Description