UI: Fixed toggle to editor full-screen mode in JSON forms

This commit is contained in:
Vladyslav_Prykhodko 2021-08-25 16:14:26 +03:00
parent acee154840
commit 647c69529c

View File

@ -15,6 +15,7 @@
///
import {
ChangeDetectorRef,
Component,
ElementRef,
forwardRef,
@ -113,7 +114,8 @@ export class JsonFormComponent implements OnInit, ControlValueAccessor, Validato
constructor(public elementRef: ElementRef,
private translate: TranslateService,
private dialogs: DialogService,
protected store: Store<AppState>) {
protected store: Store<AppState>,
private cd: ChangeDetectorRef) {
}
ngOnInit(): void {
@ -229,6 +231,7 @@ export class JsonFormComponent implements OnInit, ControlValueAccessor, Validato
this.targetFullscreenElement = element;
this.isFullscreen = !this.isFullscreen;
this.fullscreenFinishFn = fullscreenFinishFn;
this.cd.markForCheck();
}
onFullscreenChanged(fullscreen: boolean) {