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 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 948b4789d38..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 @@ -1802,8 +1802,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; }