Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'offsetWidth' of null #28

Open
PranavBhatia opened this issue Apr 30, 2020 · 0 comments
Open

Cannot read property 'offsetWidth' of null #28

PranavBhatia opened this issue Apr 30, 2020 · 0 comments

Comments

@PranavBhatia
Copy link

<div style="width: 100%; height: 100%; margin: 0 auto;">
  <span
         fittext
        *ngIf="SOME_CONDITION"  
  </span>
</div>

Following error:

ERROR TypeError: Cannot read property 'offsetWidth' of null  
    at AngularFittextDirective.calculateNewFontSize (angular-fittext.js:41)  
    at AngularFittextDirective.<anonymous> (angular-fittext.js:35)
    at ZoneDelegate.invokeTask (zone-evergreen.js:399)
    at Object.onInvokeTask (core.js:41709)
    at ZoneDelegate.invokeTask (zone-evergreen.js:398)
    at Zone.runTask (zone-evergreen.js:167)
    at invokeTask (zone-evergreen.js:480)
    at ZoneTask.invoke (zone-evergreen.js:469)
    at timer (zone-evergreen.js:2552)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant