Skip to content

Commit

Permalink
fix linting issue of missing brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaritossa authored and themyth92 committed Feb 5, 2018
1 parent 1a8e7b1 commit 084a217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lightbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ export class LightboxComponent implements AfterViewInit, OnDestroy {
this.options.positionFromTop;
const left = this._windowRef.pageXOffset || this._documentRef.documentElement.scrollLeft;

if (!this.options.centerVertically)
if (!this.options.centerVertically) {
this._rendererRef.setElementStyle(this._lightboxElem.nativeElement, 'top', `${top}px`);
}

this._rendererRef.setElementStyle(this._lightboxElem.nativeElement, 'left', `${left}px`);
this._rendererRef.setElementStyle(this._lightboxElem.nativeElement, 'display', 'block');
Expand Down

0 comments on commit 084a217

Please sign in to comment.