This commit is contained in:
crusader
2018-09-29 00:34:38 +09:00
parent 578a2af303
commit c1f532e2a9
9 changed files with 72 additions and 44 deletions

View File

@@ -6,6 +6,7 @@ import { Directive, AfterViewInit, Input, HostListener, ElementRef, ChangeDetect
selector: '[of-auto-height]'
})
export class AutoHeightDirective implements OnInit, OnDestroy, AfterViewInit {
@Input() key: string;
@Input() footerElement = null;
@HostListener('window:resize', ['$event'])
@@ -29,6 +30,10 @@ export class AutoHeightDirective implements OnInit, OnDestroy, AfterViewInit {
ngOnDestroy(): void {
}
onVisible(event) {
console.log('visibilitychange');
}
/**
* forceCalculate
*/