From 45dacb0b5ce69f64297791b63ba45c084c87e6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Mon, 4 Apr 2022 15:06:19 +0300 Subject: [PATCH] Has scrollbar fixes --- src/index.ts | 1 + src/lib/scrollbar/has-scrollbar.directive.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bd46f0f..cd2b933 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; diff --git a/src/lib/scrollbar/has-scrollbar.directive.ts b/src/lib/scrollbar/has-scrollbar.directive.ts index 2c4d319..bf66c6f 100644 --- a/src/lib/scrollbar/has-scrollbar.directive.ts +++ b/src/lib/scrollbar/has-scrollbar.directive.ts @@ -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;