feat: Added getStartFontSizeFromWeight method tests

This commit is contained in:
Giacomo Ferlaino 2020-03-13 22:10:33 +01:00
parent e0c4c6dd99
commit 2e73f1c9ee
2 changed files with 25 additions and 1 deletions

View file

@ -137,7 +137,7 @@ export class Ng2FittextDirective
}
}
private getStartFontSizeFromHeight(): number {
getStartFontSizeFromHeight(): number {
return this.container
? this.container.clientHeight
: this.el.nativeElement.parentElement.clientHeight;