Skip to content
Snippets Groups Projects
Commit fcfb7c95 authored by jojohoch's avatar jojohoch
Browse files

[player] Clean up code

parent 31580818
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@
(selectedIndexChange)="onSelectedIndexChange($event)">
<ng-container *ngFor="let page of scrollPages; let i = index; let last = last">
<mat-tab [label]="'pageIndication' | translate: {index: i + 1}">
<div [style.min-height]="'calc(100vh - ' + ((page.margin * 2 + tabHeaderHeight)) + 'px)'"
<div [style.min-height]="'calc(100vh - ' + ((page.margin * 2) + tabHeaderHeight) + 'px)'"
[style.background-color]="page.backgroundColor"
[style.padding.px]="page.margin"
[style.max-width]="page.hasMaxWidth ? page.maxWidth + 'px' : '100%'">
......
......@@ -40,7 +40,7 @@ export class HideFirstChildDirective implements OnInit, AfterViewInit, OnDestroy
}
}
private emitHeight() {
private emitHeight(): void {
this.childHeight.emit(this.elementRef.nativeElement.firstChild.offsetHeight);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment