JayeshLab / vue-resize-text

A vue directive which automatically resize font size based on element width.
https://jayeshlab.github.io/vue-resize-text/index.html
MIT License
71 stars 7 forks source link

Does not work in flex containers... #3

Closed douglasg14b closed 4 years ago

douglasg14b commented 4 years ago

If I have text in a flex container child, even if the container is set to grow, the text is set to the largest size even if it doesn't fit in the container, it is never made smaller.

douglasg14b commented 4 years ago

Not sure if it has to do with flex at all. Even if I explicitly set the element to a specific width in pixels, this still only maxes out the font size even if it doesn't fit into the element.

douglasg14b commented 4 years ago

Oh, this only resizes based on the element size, regardless of what's inside of it... I see.

SobhanKhan commented 4 years ago

Baby i have the same problem , how can I fix it?