Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

%vhelper--horizontal {
width: 100%;
height: var(--vhelper-scrollbar-size);
}
Comment thread
mddragnev marked this conversation as resolved.
Resolved

%vhelper-content--vertical {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Loading