sollenne / angular-fittext

Angular Directive to auto-scale text to fit it's parent container. (fittext.js)
https://www.npmjs.com/package/angular-fittext
33 stars 18 forks source link

Height of element is not taken into account #15

Open wbramw opened 6 years ago

wbramw commented 6 years ago

There is no way for short text to fit into a container with a bigger width than height. Only the width of the parent element is used for calculating the font size.

jcbonnard commented 6 years ago

Any fix for this issue? Thks

sollenne commented 6 years ago

Updating to work with ng6 right now. This is a good idea if you want to create a PR, I'll test it out. otherwise, this is an enhancement with a somewhat low priority. I can take a look as soon as possible. Labeling as enhancement.

saeidzebardast commented 6 years ago

👍

kelle62819 commented 6 years ago

This is really a key feature for web applications. Maybe less of an issue for websites where you can just scroll down further, but for my needs this is a hard requirement