feat: Added getStartFontSizeFromWeight method tests
This commit is contained in:
parent
e0c4c6dd99
commit
2e73f1c9ee
2 changed files with 25 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ export class Ng2FittextDirective
|
|||
}
|
||||
}
|
||||
|
||||
private getStartFontSizeFromHeight(): number {
|
||||
getStartFontSizeFromHeight(): number {
|
||||
return this.container
|
||||
? this.container.clientHeight
|
||||
: this.el.nativeElement.parentElement.clientHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue