davatron5000 / FitText.js

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

Does this work with display: flex ? #165

Open jcklpe opened 7 years ago

jcklpe commented 7 years ago

I'm fixing to check and see if it does, but wanted to put up this question for the sake of documentation of future users.

CHEWX commented 7 years ago

@thedonquixotic Yes, I am having no adverse affects.

derSteffen commented 4 years ago

Yes, there are problems with display:flex. If the fittext-element in any div (and any parent-div has display:flex) the compressor doesn't work exactly. The scale-effect (smaller) ist very fast and then there ist no scale-effect to make it bigger.

My soluion was to give the fittext-element an extra parent div. And this div I only give them a width:100% and a max-width:auto

But this is not the solution for the future.