Skip to content

Commit b366d36

Browse files
author
Lorenzo Iovino
committed
up
1 parent 7a1bcdc commit b366d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng2fittext.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit {
5353
this.setFontSize(this.container.clientHeight);
5454
} else {
5555
this.setFontSize(this.container.clientWidth);
56-
this.el.nativeElement.style.setProperty('will-change', 'content');
5756
}
57+
this.el.nativeElement.style.setProperty('will-change', 'content');
5858
}
5959

6060
ngAfterViewInit() {

0 commit comments

Comments
 (0)