MOBILE-2765 iframe: Iframe viewer should occupy full height

main
Pau Ferrer Ocaña 2018-11-30 13:52:14 +01:00
parent 62a37720da
commit 26b7c3f377
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,12 @@ export class CoreLoadingComponent implements OnInit, OnChanges {
// Default loading message. // Default loading message.
this.message = this.translate.instant('core.loading'); this.message = this.translate.instant('core.loading');
} }
// Add class if loaded on init.
if (this.hideUntil) {
this.element.classList.add('core-loading-loaded');
this.content.nativeElement.classList.add('core-loading-content');
}
} }
ngOnChanges(changes: { [name: string]: SimpleChange }): void { ngOnChanges(changes: { [name: string]: SimpleChange }): void {

View File

@ -1,4 +1,7 @@
ion-app.app-root page-core-viewer-iframe { ion-app.app-root page-core-viewer-iframe {
.scroll-content {
overflow: hidden;
}
core-loading .core-loading-content { core-loading .core-loading-content {
height: 100%; height: 100%;
} }