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

Min Size and line break #16

Closed waltercolindres closed 9 years ago

waltercolindres commented 9 years ago

I set a min size to 30 and it breaks outside of the container element on mobile. How can I get it to do lines breaks automatically?

patrickmarabeas commented 9 years ago

No doubt it'll be regarding element[0].style.whiteSpace = 'nowrap';. Without testing, you might find success in removing some of the forced styling in the module. I didn't have wrapping in mind when I developed this.

I shouldn't be too far off having a spot of time to dig into some of the current issues.

waltercolindres commented 9 years ago

Thanks! I appreciate the quick reply!

patrickmarabeas commented 9 years ago

This should now be fixed in v3.2.0: https://github.com/patrickmarabeas/ng-FitText.js/releases/tag/3.2.0

You can see it live in the demo (type in the input): http://patrickmarabeas.github.io/ng-FitText.js/

waltercolindres commented 9 years ago

Awesome!