davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.75k stars 1.39k forks source link

Scale text only if it's visible. #129

Closed prcaen closed 6 years ago

prcaen commented 9 years ago

Hello,

I've created this pull-request to solve the issue of resizing fonts which are not visible (0px).

Thanks.

davatron5000 commented 9 years ago

Thanks! I'm curious what the use case is for resizing hidden text in the first place? Or is this just preventing it from going to zero? Wouldn't you have to reapply fitText on .show() regardless?

prcaen commented 9 years ago

Hello, Yes it's for preventing it from going to zero. Thanks.