From da7f1cc64cd0c446570709240b4d9fcf71b5b805 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Thu, 18 Jul 2019 23:07:07 +0200 Subject: [PATCH] improving lightbox --- frontend/app/ui/gallery/lightbox/lightbox.gallery.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {