This commit is contained in:
Lorenzo Iovino 2017-05-22 12:30:39 +02:00
parent 7a1bcdc619
commit b366d366c8

View file

@ -53,8 +53,8 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit {
this.setFontSize(this.container.clientHeight); this.setFontSize(this.container.clientHeight);
} else { } else {
this.setFontSize(this.container.clientWidth); this.setFontSize(this.container.clientWidth);
this.el.nativeElement.style.setProperty('will-change', 'content');
} }
this.el.nativeElement.style.setProperty('will-change', 'content');
} }
ngAfterViewInit() { ngAfterViewInit() {