From 4e7b148dddeee2523596adf8805851ee7df4868c Mon Sep 17 00:00:00 2001 From: Martin Dragnev Date: Fri, 15 May 2026 17:17:34 +0300 Subject: [PATCH 1/4] fix(vhelper): ensure horizontal helper has defined height for scrollbar --- .../core/src/core/styles/components/_common/_igx-vhelper.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/igniteui-angular/core/src/core/styles/components/_common/_igx-vhelper.scss b/projects/igniteui-angular/core/src/core/styles/components/_common/_igx-vhelper.scss index 5c623bf1e34..fa1b4379b0d 100644 --- a/projects/igniteui-angular/core/src/core/styles/components/_common/_igx-vhelper.scss +++ b/projects/igniteui-angular/core/src/core/styles/components/_common/_igx-vhelper.scss @@ -17,6 +17,7 @@ %vhelper--horizontal { width: 100%; + height: var(--vhelper-scrollbar-size); } %vhelper-content--vertical { From 60a470f59d071ed5f3843c5a00ad9bf0b934f63f Mon Sep 17 00:00:00 2001 From: Martin Dragnev Date: Mon, 18 May 2026 14:49:55 +0300 Subject: [PATCH 2/4] test(for-of): update scrollbar visibility logic based on content width --- .../src/directives/for-of/for_of.directive.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts b/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts index 948b4789d38..a4e7f486222 100644 --- a/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts +++ b/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts @@ -1802,8 +1802,9 @@ export class VirtualComponent { public isHorizontalScrollbarVisible() { const horizontalScrollbar = this.container.element.nativeElement.querySelector('igx-horizontal-virtual-helper'); /** - * The helper's height is automatically calculated from the native scrollbar size, which is 0 when the - * browser hides scrollbars (e.g. headless Playwright). Check if the content is wider than the helper instead. + * The element height is set explicitly via CSS, so it is always present. + * Visibility is determined by whether the virtual content is wider than the helper. + * BUG https://github.com/IgniteUI/igniteui-angular/issues/17216 */ return horizontalScrollbar.clientWidth < horizontalScrollbar.children[0].offsetWidth; } From 5f2ed349b51e9631b98d743e434ccfd8436fe111 Mon Sep 17 00:00:00 2001 From: Martin Dragnev Date: Wed, 25 Nov 2026 14:52:01 +0200 Subject: [PATCH 3/4] docs(changelog): Add changelog entry --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c55b5d85f63..4174af0a0dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes for each version of this project will be documented in this file. +## 22.3.2 + +### Bug Fixes + +- `IgxForOfDirective` + - In Safari, the horizontal scrollbar of a horizontally virtualized `igxFor` is now visible and usable when the list first renders. Previously it was collapsed until change detection ran again. + ## 22.3.1 ### Bug Fixes From fab9af374ee010106735f19eacd6a17f1fe4296b Mon Sep 17 00:00:00 2001 From: Martin Dragnev Date: Wed, 25 Nov 2026 14:58:56 +0200 Subject: [PATCH 4/4] fix(virtual-component): remove obsolete bug reference for scrollbar visibility logic --- .../directives/src/directives/for-of/for_of.directive.spec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts b/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts index a4e7f486222..03054b9a14b 100644 --- a/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts +++ b/projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.spec.ts @@ -1804,7 +1804,6 @@ export class VirtualComponent { /** * The element height is set explicitly via CSS, so it is always present. * Visibility is determined by whether the virtual content is wider than the helper. - * BUG https://github.com/IgniteUI/igniteui-angular/issues/17216 */ return horizontalScrollbar.clientWidth < horizontalScrollbar.children[0].offsetWidth; }