Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't start at the correct size #14

Open
Shardj opened this issue May 26, 2023 · 1 comment
Open

Doesn't start at the correct size #14

Shardj opened this issue May 26, 2023 · 1 comment

Comments

@Shardj
Copy link

Shardj commented May 26, 2023

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.

@bayareawebpro
Copy link

bayareawebpro commented Oct 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants