bug fixed
This commit is contained in:
parent
221974b273
commit
ed12c57984
|
@ -7,7 +7,8 @@ import {
|
|||
ChangeDetectorRef,
|
||||
ChangeDetectionStrategy,
|
||||
ViewChild,
|
||||
ElementRef
|
||||
ElementRef,
|
||||
HostListener
|
||||
} from '@angular/core';
|
||||
import { ucapAnimations } from '../../animations';
|
||||
import { FileEventJson } from '@ucap-webmessenger/protocol-event';
|
||||
|
@ -54,6 +55,13 @@ export class ImageViewerComponent implements OnInit {
|
|||
this.naturalHeight = this.fileInfo.imageHeight;
|
||||
}
|
||||
|
||||
@HostListener('window:resize', ['$event'])
|
||||
onResize(event: Event) {
|
||||
this.setImageHeight();
|
||||
|
||||
this.changeDetectorRef.detectChanges();
|
||||
}
|
||||
|
||||
onClickDownload(): void {
|
||||
this.fileDownloadItem = new FileDownloadItem();
|
||||
this.download.emit(this.fileDownloadItem);
|
||||
|
|
Loading…
Reference in New Issue
Block a user