Skip to content

fix(vhelper): ensure horizontal helper has defined height for scrollbar - 22.3.x - #18059

Open
mddragnev wants to merge 4 commits into
22.3.xfrom
mdragnev/fix-17216-22.3.x
Open

mddragnev wants to merge 4 commits into
22.3.xfrom
mdragnev/fix-17216-22.3.x

Conversation

@mddragnev

@mddragnev mddragnev commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Closes #17216

Description

In Safari, the horizontal scrollbar of a horizontally virtualized igxFor was collapsed when the list first rendered and became usable only after change detection ran again. Safari does not size igx-horizontal-virtual-helper from the ::-webkit-scrollbar height, which is set through a CSS variable. The helper now sets its height explicitly with height: var(--vhelper-scrollbar-size).

The for-of spec helper isHorizontalScrollbarVisible() no longer relies on the helper height. It checks whether the content is wider than the helper.

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:

For Of directive, Theming (virtual helper)

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

for_of.directive.spec.ts passes on this branch (58/58).

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 balanced review requested due to automatic review settings November 25, 2026 12:58

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.

🟡 Changes recommended

Standalone horizontal virtualization leaves --vhelper-scrollbar-size uninitialized, causing the declaration to resolve to height: auto and bypass the explicit-height fix.

1 open issue
What changed in this PR

Backports the Safari horizontal scrollbar fix from #17277 to 22.3.x, addressing initial rendering of horizontally virtualized igxFor lists.

Changes:

  • Sets an explicit horizontal helper height using the scrollbar-size CSS variable.
  • Clarifies the existing width-based visibility check in a test comment; test logic is unchanged.
  • Adds a 22.3.2 changelog entry for the Safari fix.
File Description
projects/​igniteui-angular/​directives/​src/​directives/​for-of/​for_of.directive.spec.ts Updates the visibility-helper comment and links the issue.
projects/​igniteui-angular/​core/​src/​core/​styles/​components/​_common/​_igx-vhelper.scss Adds explicit horizontal virtual helper height.
CHANGELOG.md Documents the Safari scrollbar fix for 22.3.2.

Review effort: Balanced

This branch has not been deployed

No deployments
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