fix(for-of): correct virtualized sizing for bordered lists - #17494
Open
viktorkombov wants to merge 2 commits into
Open
fix(for-of): correct virtualized sizing for bordered lists#17494viktorkombov wants to merge 2 commits into
viktorkombov wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates Ignite UI for Angular’s virtualization measurements to properly account for borders in igxFor item sizing and to use the Excel-style filtering list’s inner (client) height as the virtual viewport size, preventing clipping when borders are present.
Changes:
- Adjusts
IgxForOfDirectivenode size calculation to include border widths in addition to margins. - Updates Excel-style filtering search virtualization to use
clientHeightinstead ofoffsetHeightfor the container size. - Adds regression tests covering bordered sizing for
igxForand the Excel-style filtering viewport sizing.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| projects/igniteui-angular/grids/grid/src/grid-filtering-ui.spec.ts | Adds a regression test asserting the Excel-style search list uses inner client height for virtualization. |
| projects/igniteui-angular/grids/core/src/filtering/excel-style/excel-style-search.component.ts | Changes containerSize to return list clientHeight (inner height) rather than offsetHeight. |
| projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.ts | Includes element borders in virtualized item size measurements. |
| projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts | Adds tests validating border + margin are included in size calculations and exposes a test helper for node sizing. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
mddragnev
approved these changes
Aug 13, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #17490
Description
Fixes virtualized list sizing when item and container borders are present.
igxFornow includes item borders alongside margins when measuring rendereditems. The Excel-style filtering list uses its inner client height as the
virtual viewport, preventing its own borders from clipping the final item with
the Fluent theme.
Adds regression coverage for vertical and horizontal item sizing and the
Excel-style filtering viewport.
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)