-
Notifications
You must be signed in to change notification settings - Fork 61
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
Force refreshing #46
Comments
I've been mulling the idea of giving the |
I use this workaround,
in the event resize
It's worked for me |
Hi, |
@devidation: Debounce the call your slider makes. Have a look at how ngFitText handles the resize event if a debounce function is supplied. |
Ok, I solved this by simply doing a $(window).trigger('resize'), which the plugins listens to, to update itself, after changing the content. On a side note, for others that might run into this, on angular 1.5+, when updating the scope itself, I was running into the "$scope.digest already in progress" errors... I solved it by removing the scope.apply and just calling resizer() on its own: |
If you can create a demo on codepen illustrating the digest issue I'll look at fixing. |
ran into this issue and solved it by doing small changes in the directive and added Now I can dynamically adjust the size by adjusting it in the model and using it in the html |
Is it possible to have a way to manually refresh the font-size calculation ?
Maybe via a custom event that we could trigger when we want, or by watching another special attribute, or both...
We need to use ngBindHtml , and not ngBind (that is [watched](ngBind watch) by the directive).
It may also help people using the
{{ ... }}
notation, or after having resized the parent container.The text was updated successfully, but these errors were encountered: