From 663f4edc39a9a84a393a12bc02537ee64c5f8572 Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Wed, 19 Jul 2017 07:48:22 +0200 Subject: [PATCH] fix compilation error (class and function visibility) --- frontend/app/app.module.ts | 2 +- frontend/app/gallery/lightbox/lightbox.gallery.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/app.module.ts b/frontend/app/app.module.ts index ec3e033e..ca6db40a 100644 --- a/frontend/app/app.module.ts +++ b/frontend/app/app.module.ts @@ -70,7 +70,7 @@ export class MyHammerConfig extends HammerGestureConfig { } } -class CustomUrlSerializer implements UrlSerializer { +export class CustomUrlSerializer implements UrlSerializer { private _defaultUrlSerializer: DefaultUrlSerializer = new DefaultUrlSerializer(); parse(url: string): UrlTree { diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts index 01d04998..c098feb8 100644 --- a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts +++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts @@ -339,11 +339,11 @@ export class GalleryLightboxComponent implements OnDestroy { window.scrollTo(window.scrollX, value); } - private getPhotoFrameWidth() { + public getPhotoFrameWidth() { return Math.max(window.innerWidth - this.infoPanelWidth, 0); } - private getPhotoFrameHeight() { + public getPhotoFrameHeight() { return window.innerHeight; }