patrickmarabeas / ng-FitText.js

An AngularJS directive for inflating web type.
http://patrickmarabeas.github.io/ng-FitText.js
MIT License
222 stars 61 forks source link

fix resizing collisions caused by asynchronous nature of scope.$watch #33

Open Merott opened 9 years ago

Merott commented 9 years ago

The resizing sometimes wouldn't work as expected because resize was being called at different times with different values, and not always the most recent would win. By implementing a short delay, and ensuring that previous calls to resize() are cancelled, the resizing can be done more reliably.

duezerouno commented 7 years ago

Fixes #54. Thank you @Merott

LoganLehman commented 7 years ago

@Merott @patrickmarabeas - Can we please get this merged?

patrickmarabeas commented 7 years ago

Integrated the changes; check v4.2.2 and see whether it works as expected.