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
636 stars 123 forks source link

Safari is not considering height of container #64

Open spandl opened 1 year ago

spandl commented 1 year ago

I am running into an issue where Safari isn't considering the height of the box, but only the width. For very short labels this will render the font much larger. In Firefox or Chrome, the result is correct.

In the CSS, I specify height of box, as well as line-height.

Any idea, what to adapt to make this work, or is this a known issue?

image

Zocum commented 8 months ago

I am experiencing the same issue. Might just delete the package and implement a CSS solution.