diff --git a/utils/modal/full-screen-modal/full-screen-modal.component.ts b/utils/modal/full-screen-modal/full-screen-modal.component.ts index e7e010fd..fe27d429 100644 --- a/utils/modal/full-screen-modal/full-screen-modal.component.ts +++ b/utils/modal/full-screen-modal/full-screen-modal.component.ts @@ -1,16 +1,16 @@ import { - AfterViewInit, ChangeDetectorRef, + AfterViewInit, + ChangeDetectorRef, Component, ElementRef, - EventEmitter, HostListener, + EventEmitter, + HostListener, Input, OnDestroy, - OnInit, Output, ViewChild } from "@angular/core"; -import {fromEvent, Subscription} from 'rxjs'; -import {delay} from "rxjs/operators"; +import {Subscription} from 'rxjs'; import {HelperFunctions} from "../../HelperFunctions.class"; import {LayoutService} from "../../../dashboard/sharedComponents/sidebar/layout.service"; @@ -43,7 +43,7 @@ declare var ResizeObserver; -
+
@@ -111,7 +111,7 @@ export class FullScreenModalComponent implements AfterViewInit, OnDestroy { /* Height = Viewport - header - (Body padding) */ changeHeight() { if(typeof window !== "undefined" && this.header) { - this.bodyHeight = window.innerHeight - this.header.nativeElement.clientHeight - (this.isMobile?40:80); + this.bodyHeight = window.innerHeight - this.header.nativeElement.offsetHeight; this.cdr.detectChanges(); } }