diff --git a/projects/player/src/app/components/layout/layout.component.html b/projects/player/src/app/components/layout/layout.component.html index 739f8e249d08aeec837e1a4ebd095019cbdb163c..a03b5ac430526b10972f655074a8a7247833efc5 100644 --- a/projects/player/src/app/components/layout/layout.component.html +++ b/projects/player/src/app/components/layout/layout.component.html @@ -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%'"> diff --git a/projects/player/src/app/directives/hide-first-child.directive.ts b/projects/player/src/app/directives/hide-first-child.directive.ts index 2c2b5dc567ab99ceec33a8ce95fb5ba51ef2b6d7..d80025275e1ee5c3bb8a6271544f092514a0baa1 100644 --- a/projects/player/src/app/directives/hide-first-child.directive.ts +++ b/projects/player/src/app/directives/hide-first-child.directive.ts @@ -40,7 +40,7 @@ export class HideFirstChildDirective implements OnInit, AfterViewInit, OnDestroy } } - private emitHeight() { + private emitHeight(): void { this.childHeight.emit(this.elementRef.nativeElement.firstChild.offsetHeight); }