From c308b800df86ffefca7a6be6b609752e733d3f9a Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Mon, 22 May 2017 12:31:08 +0200 Subject: [PATCH] up --- src/ng2fittext.directive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ng2fittext.directive.ts b/src/ng2fittext.directive.ts index 1e06fa2..4632333 100644 --- a/src/ng2fittext.directive.ts +++ b/src/ng2fittext.directive.ts @@ -53,6 +53,7 @@ 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'); }