fix(grid): Recalculate horizontal size cache when scrolling horizontally with autosized columns#17425
fix(grid): Recalculate horizontal size cache when scrolling horizontally with autosized columns#17425mddragnev wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to fix an IgxGrid horizontal virtualization issue where grids with many width="auto" columns can end up with incorrect horizontal size caching, resulting in a visible gap at the end of horizontal scrolling (issue #17392).
Changes:
- Triggers a manual “re-diff” attempt for the horizontal virtualization directives after auto-sizing columns in view.
- Adds a unit test intended to validate that horizontal size caching remains correct when navigating horizontally with many auto-sized columns.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
projects/igniteui-angular/grids/grid/src/grid-base.directive.ts |
Adds calls intended to rebuild horizontal virtualization caches after autoSizeColumnsInView() updates column pixel widths. |
projects/igniteui-angular/grids/grid/src/column.spec.ts |
Adds a new test covering horizontal navigation with many width: 'auto' columns and imports scroll-detection helpers. |
|
The sizing now works correctly in a zone-based environment. In zoneless mode, however, the related issue is still reproducible. In the
I we apply the changes from the PR #17328 that replaces
A similar issue is reproducible with vertical virtualization. Navigating from the first row to the last one using
|



Closes #17392
Description
Motivation / Context
Type of Change (check all that apply):
Component(s) / Area(s) Affected:
How Has This Been Tested?
Test Configuration:
Screenshots / Recordings
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)