From b366d366c845dd227a382ed16ff497faec453716 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Mon, 22 May 2017 12:30:39 +0200 Subject: [PATCH] up --- src/ng2fittext.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng2fittext.directive.ts b/src/ng2fittext.directive.ts index 54958f7..1e06fa2 100644 --- a/src/ng2fittext.directive.ts +++ b/src/ng2fittext.directive.ts @@ -53,8 +53,8 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit { this.setFontSize(this.container.clientHeight); } else { this.setFontSize(this.container.clientWidth); - this.el.nativeElement.style.setProperty('will-change', 'content'); } + this.el.nativeElement.style.setProperty('will-change', 'content'); } ngAfterViewInit() {