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

Support height-only/dynamic width? #43

Open EternityForest opened 4 years ago

EternityForest commented 4 years ago

Quite often, I find that setting an explicit width is inconvenient, because of unknown screen widths, but I hate a pretty good idea of what the height should be. Would it be possible to have a mode where we can expand vertically, and just leave the width to the browser?

Thanks!