Has scrollbar fixes

This commit is contained in:
Adina Țeudan 2022-04-04 15:06:19 +03:00
parent 6c0823a94d
commit 45dacb0b5c
2 changed files with 2 additions and 1 deletions

View File

@ -15,3 +15,4 @@ export * from './lib/loading';
export * from './lib/error';
export * from './lib/search';
export * from './lib/empty-states';
export * from './lib/scrollbar';

View File

@ -7,7 +7,7 @@ import { ChangeDetectorRef, Directive, ElementRef, HostBinding, HostListener, On
export class HasScrollbarDirective implements OnInit, OnChanges {
@HostBinding('class') class = '';
constructor(private readonly _elementRef: ElementRef, private readonly _changeDetector: ChangeDetectorRef) {}
constructor(protected readonly _elementRef: ElementRef, protected readonly _changeDetector: ChangeDetectorRef) {}
get hasScrollbar(): boolean {
const element = this._elementRef?.nativeElement as HTMLElement;