From 56fb09b9f1c7e3ecac70c53ca140bdce41ffdd15 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 19 May 2020 10:49:10 +0300 Subject: [PATCH] Improve custom dialog container --- .../widget/dialog/custom-dialog-container.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts b/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts index 3c2ac8d9f1..804579bc9b 100644 --- a/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts @@ -18,7 +18,7 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Component, ComponentFactory, - ComponentRef, + ComponentRef, HostBinding, Inject, Injector, OnDestroy, @@ -46,6 +46,8 @@ export interface CustomDialogContainerData { }) export class CustomDialogContainerComponent extends DialogComponent implements OnDestroy { + @HostBinding('style.height') height = '0px'; + private readonly customComponentRef: ComponentRef; constructor(protected store: Store,