Skip to content

fix(for-of): correct virtualized sizing for bordered lists - #17494

Open
viktorkombov wants to merge 2 commits into
masterfrom
vkombov/fix-17493
Open

fix(for-of): correct virtualized sizing for bordered lists#17494
viktorkombov wants to merge 2 commits into
masterfrom
vkombov/fix-17493

Conversation

@viktorkombov

@viktorkombov viktorkombov commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Closes #17490

Description

Fixes virtualized list sizing when item and container borders are present.

igxFor now includes item borders alongside margins when measuring rendered
items. 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):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 IgxForOfDirective node size calculation to include border widths in addition to margins.
  • Updates Excel-style filtering search virtualization to use clientHeight instead of offsetHeight for the container size.
  • Adds regression tests covering bordered sizing for igxFor and 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.

Comment thread projects/igniteui-angular/grids/grid/src/grid-filtering-ui.spec.ts
Comment thread projects/igniteui-angular/grids/grid/src/grid-filtering-ui.spec.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@viktorkombov
viktorkombov requested a review from mddragnev August 12, 2026 08:03
@mddragnev mddragnev added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

igx-grid-excel-style-filtering: last list item is hidden behind the footer buttons when scrolled to the end

3 participants