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
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);
}

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

Expand Down
Loading