Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65690912
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
Wed, Jun 5, 13:50
Size
529 B
Mime Type
text/x-java
Expires
Fri, Jun 7, 13:50 (2 d)
Engine
blob
Format
Raw Data
Handle
18113030
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