Closed mburger81 closed 5 years ago
That is strange. maybe an issue with renderer2. I'll look at the compression issue. Thanks for contributing also. It's cool to see others use your code and take an interest in it.
Also. I left a comment on your PR. Make sure to update the documentation and I'll merge.
closing
We use your plugin and also contributed to the project. We saw only now that you have renamed the lib and have done several work. We try to update but there are some problems.
If we do the upgrade and import the new module, the behavior of the plugin is not anymore like the it was before. There is always the
minFontSize
used and compression seems to do nothing.On a very simple example like this, it does not work:
One of the problem we discovered is, it "fails" if we set
width
andheight
on fittextdiv
. Previously we needed it to center text contentIf we use the next code the plugin works again, with used max and min font and resizing also works:
So we think there are some breaking changes, and also we are not sure about the
compression
property. Previously we used always the compression, not sure why, but now it seems compression makes not sense if we use only on fittext. The sense of this property is if we have for example a scenario like thisThis is a table with two rows and two cols always with the same size, in this case we have 4 fittext divs where we set
minFontSize
to 20 andmaxFontSize
to 40, which is the best approach to have same font size for every div? Perhaps there is also a better way to do this without using cols?