Browse Source

UI: Fixed custom dashboard CSS was not applied when a dashboard is full-screen

pull/7652/head
Vladyslav_Prykhodko 4 years ago
parent
commit
d88f0c3ba3
  1. 2
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html
  2. 3
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

2
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html

@ -16,7 +16,7 @@
--> -->
<div class="tb-dashboard-page mat-content" [ngClass]="{'mobile-app': isMobileApp && !isEdit}" <div class="tb-dashboard-page mat-content" [ngClass]="{'mobile-app': isMobileApp && !isEdit}"
fxFlex tb-fullscreen [fullscreen]="widgetEditMode || iframeMode || forceFullscreen || isFullscreen"> fxFlex tb-fullscreen [fullscreenElement]="elRef.nativeElement" [fullscreen]="widgetEditMode || iframeMode || forceFullscreen || isFullscreen">
<tb-hotkeys-cheatsheet #cheatSheetComponent></tb-hotkeys-cheatsheet> <tb-hotkeys-cheatsheet #cheatSheetComponent></tb-hotkeys-cheatsheet>
<section class="tb-dashboard-toolbar" <section class="tb-dashboard-toolbar"
[ngClass]="{ 'tb-dashboard-toolbar-opened': toolbarOpened, [ngClass]="{ 'tb-dashboard-toolbar-opened': toolbarOpened,

3
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

@ -354,7 +354,8 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
private overlay: Overlay, private overlay: Overlay,
private viewContainerRef: ViewContainerRef, private viewContainerRef: ViewContainerRef,
private cd: ChangeDetectorRef, private cd: ChangeDetectorRef,
private sanitizer: DomSanitizer) { private sanitizer: DomSanitizer,
public elRef: ElementRef) {
super(store); super(store);
if (isDefinedAndNotNull(embeddedValue)) { if (isDefinedAndNotNull(embeddedValue)) {
this.embedded = embeddedValue; this.embedded = embeddedValue;

Loading…
Cancel
Save