diff --git a/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts b/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts index 2d065df..242fe32 100644 --- a/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts +++ b/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts @@ -158,11 +158,11 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { //noinspection JSUnusedGlobalSymbols @HostListener('window:resize', ['$event']) onResize() { + this.updatePhotoFrameDim(); if (this.activePhoto) { this.animateLightbox(); this.updateActivePhoto(this.activePhotoId); } - this.updatePhotoFrameDim(); } public nextImage() {