Has scrollbar fixes
This commit is contained in:
parent
6c0823a94d
commit
45dacb0b5c
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user