Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75572662
tln-height.directive.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 3, 01:17
Size
529 B
Mime Type
text/x-java
Expires
Mon, Aug 5, 01:17 (2 d)
Engine
blob
Format
Raw Data
Handle
19568126
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
tln-height.directive.ts
View Options
import { Directive, ElementRef, OnInit, Input } from '@angular/core';
import { TlnPageViewComponent } from './tln-page-view.component';
@Directive({
selector: '[setMaxHeightTo]'
})
export class TlnHeightDirective implements OnInit{
@Input('setMaxHeightTo') pageView: TlnPageViewComponent;
constructor(public el: ElementRef) { }
ngOnInit(){
if (this.pageView != undefined && this.pageView != null){
this.pageView.max_height = window.innerHeight - this.el.nativeElement.offsetHeight -15;
}
}
}
Event Timeline
Log In to Comment