STRML / textFit

A jQuery-free component that quickly fits single and multi-line text to the width (and optionally height) of its container.
https://textfit.strml.net
643 stars 122 forks source link

Callback never get called #22

Closed foreheadSniffer closed 9 years ago

foreheadSniffer commented 9 years ago

Seems like you don't call callback at the end

STRML commented 9 years ago

That's true. At some point this was changed from an asynchronous library to a synchronous one and the callback is no longer necessary. Simply continue working in the same scope after calling textFit().

STRML commented 9 years ago

Fixed in https://github.com/STRML/textFit/commit/3dea45193e3b8b80a9b95daf0379fb4f49cc37a9