From 95d96768bb4f24b2a7590dca2d332a84aa44ac2d 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 7997ee13741b6b0c4e0b6394b95e794936edb98e 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 5b0e44db0cd..7a8cfa7a481 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 @@ -1468,10 +1468,11 @@ export class VirtualComponent { public isHorizontalScrollbarVisible() { const horizontalScrollbar = this.container.element.nativeElement.querySelector('igx-horizontal-virtual-helper'); /** - * Due to current implementation the height is automatically calculated. - * That's why when it's less than 16 there is no scrollbar + * The element height is set explicitly via CSS, so it is always present. + * Visibility is determined by whether the virtual content width exceeds the container width. + * BUG https://github.com/IgniteUI/igniteui-angular/issues/17216 */ - return horizontalScrollbar.offsetHeight >= 16; + return horizontalScrollbar.offsetWidth < horizontalScrollbar.children[0].offsetWidth; } } From 8fff56edfd313c810cfff1abb3c61a9d010cf303 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 8b03512cdec..83eb570bb8c 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 c8163a969d3240cd0546df3e5756cf7935c1f9b4 Mon Sep 17 00:00:00 2001 From: Martin Dragnev Date: Wed, 25 Nov 2026 15:02:01 +0200 Subject: [PATCH 4/4] fix(virtual): remove obsolete bug reference for scrollbar visibility check --- .../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 a8d9676804a..4be4a8db3f8 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 @@ -1822,7 +1822,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; }