You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have experienced random bugs with node.measure(). Sometimes, unexpectedly and between re-renders, it returns different sizes for the same node.
I have been thinking that the problem was mine, but nope, styles are always the same, the content to be rendered is always the same, but... magically, measure returns slightly different sizes caused by decimals.
So... maybe you can Math.floor() the text height when calculating.
I am talking about really minimal height differences, for example:
I have experienced random bugs with node.measure(). Sometimes, unexpectedly and between re-renders, it returns different sizes for the same node.
I have been thinking that the problem was mine, but nope, styles are always the same, the content to be rendered is always the same, but... magically, measure returns slightly different sizes caused by decimals.
So... maybe you can Math.floor() the text height when calculating.
I am talking about really minimal height differences, for example:
So maybe,
could help for unexpected behaviors (at least, I am suffering them)
The text was updated successfully, but these errors were encountered: