Closed awinograd closed 8 years ago
These values can be NaN if the element isn't yet added to the DOM or window.getComputedStyle is returning "" for some other reason. When that happens, react-textfit gets stuck in an infinite loop.
window.getComputedStyle
""
react-textfit
Thx! I published this with v0.1.8.
Great! Thanks for a nice component!
These values can be NaN if the element isn't yet added to the DOM or
window.getComputedStyle
is returning""
for some other reason. When that happens,react-textfit
gets stuck in an infinite loop.