Update to angular 17 #97
1 changed files with 3 additions and 3 deletions
|
|
@ -143,13 +143,13 @@ export class Ng2FittextDirective
|
|||
getStartFontSizeFromHeight(): number {
|
||||
return this.container
|
||||
? this.container.clientHeight
|
||||
: this.el.nativeElement.parentElement.clientHeight;
|
||||
: this.el.nativeElement.parentElement!.clientHeight;
|
||||
}
|
||||
|
||||
private getStartFontSizeFromWeight(): number {
|
||||
return this.container
|
||||
? this.container.clientWidth
|
||||
: this.el.nativeElement.parentElement.clientWidth;
|
||||
: this.el.nativeElement.parentElement!.clientWidth;
|
||||
}
|
||||
|
||||
isDone(): boolean {
|
||||
|
|
@ -164,7 +164,7 @@ export class Ng2FittextDirective
|
|||
return this.container
|
||||
? this.checkOverflow(this.container, this.el.nativeElement)
|
||||
: this.checkOverflow(
|
||||
this.el.nativeElement.parentElement,
|
||||
this.el.nativeElement.parentElement!,
|
||||
this.el.nativeElement
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue