-
Notifications
You must be signed in to change notification settings - Fork 144
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
Often "Freezes" at minimum size #39
Comments
Did you find a fix? |
No I did not. I ended up implementing a component like this using CSS calc(). However, it is not perfect with SSR as the text will be streamed at minimum size in the HTML and stay that way until react hydrates. |
Try to use a parameter 'throttle' i.e 1000 milliseconds, it should calculate height with delay when text, styles, etc already fully loaded. |
Same issue. @brandonkal would you be willing to share your CSS solution? |
same problem using nextjs. IU tried loading it dynamically but still it won't work. |
@ceiphr No longer using calc for other reasons but the idea is to figure out what size you want the text at different breakpoints and build an algebraic function to achieve that initial sizing as a function of view width. |
Makes sense, thank you! |
i am still facing this issue |
I use this with a Gatsby site. Often the font size will initially load at the minimum font size and it does not update.
The text was updated successfully, but these errors were encountered: