vue-resize-text
vue-resize-text copied to clipboard
Doesn't start at the correct size
This library only seems to kick in after I resize the viewport, I need the initial size to be reasonable too but it always starts at minFontSize.
I would like to use this package, but I really need this functionality as well.
Ideally, the "resize" callback needs to be fired once, when the element is first initialized, so that the starting size of the font is adjusted to fit the container.
- ❌ Element Created -> Resize (we need this)
- ✅ Window Resized -> Resize (works as expected)
** Looking at the code (https://github.com/JayeshLab/vue-resize-text/blob/master/src/VueResizeText.js#L46) it looks like this is being done, but for us it's not working. I'm not sure what the cause of this is.