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 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 { 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 5091d90ecd9..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 @@ -1820,8 +1820,8 @@ 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. */ return horizontalScrollbar.clientWidth < horizontalScrollbar.children[0].offsetWidth; }