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
@klouzoun Using the getBoundingClientRect().width the result is always a float value. The offsetWidth seems to be returning the rounded version of that.
What about a "strict mode" as an option, where I can get the float (real) result? 🤔
Hi,
When using your library with following options, I got a miscomputation of the width:
font: 'Helvetica';
fontSize: '14px';
fontWeight: '400'
For example,
Lalande de Pomerol
andBordeaux Supérieur
get the same width (125px), while they shouldn't have.The fix could be to use getBoundingClientRect().width instead of offsetWidth() in the computation (same for height).
The text was updated successfully, but these errors were encountered: