vue-resize-text icon indicating copy to clipboard operation
vue-resize-text copied to clipboard

Doesn't start at the correct size

Open Shardj opened this issue 2 years ago • 1 comments

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.

Shardj avatar May 26 '23 15:05 Shardj

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.

bayareawebpro avatar Oct 26 '23 01:10 bayareawebpro