diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 7bb2346..2261f4a 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 7bb2346ec270e1b8e4f3ed982adf340e57631bbc +Subproject commit 2261f4ae6f8ea4a2d52aaf75c857e583bf913721 diff --git a/src/app/topic/indicators.component.html b/src/app/topic/indicators.component.html index f16eb7a..34e3da2 100644 --- a/src/app/topic/indicators.component.html +++ b/src/app/topic/indicators.component.html @@ -175,7 +175,8 @@ safeUrls.get(indicatorUtils.getFullUrl(stakeholder, indicator.indicatorPaths[0]))" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" [src]="safeUrls.get(indicatorUtils.getFullUrl(stakeholder, indicator.indicatorPaths[0]))" - class="uk-width-1-1 uk-blend-multiply" [ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')"> + class="uk-width-1-1" [ngClass]="'uk-height-' + (indicator.height?indicator.height.toLowerCase():'medium')" + [class.uk-blend-multiply]="!isFullscreen">
@@ -407,9 +408,9 @@
- + class="uk-width-1-1 uk-height-large">
diff --git a/src/app/topic/indicators.component.ts b/src/app/topic/indicators.component.ts index 04e9ddc..7337108 100644 --- a/src/app/topic/indicators.component.ts +++ b/src/app/topic/indicators.component.ts @@ -2,6 +2,7 @@ import { AfterViewInit, ChangeDetectorRef, Component, + HostListener, Input, OnChanges, OnDestroy, @@ -95,6 +96,15 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV @ViewChild('editNumberNotify', {static: true}) editNumberNotify: NotifyFormComponent; @ViewChild('editChartNotify', {static: true}) editChartNotify: NotifyFormComponent; @ViewChild('deleteNotify', {static: true}) deleteNotify: NotifyFormComponent; + + public isFullscreen: boolean = false; + @HostListener('fullscreenchange', ['$event']) + @HostListener('webkitfullscreenchange', ['$event']) + @HostListener('mozfullscreenchange', ['$event']) + @HostListener('MSFullscreenChange', ['$event']) + screenChange(event) { + this.isFullscreen = !this.isFullscreen; + } /** * Subscriptions **/