raphael icon indicating copy to clipboard operation
raphael copied to clipboard

fix for fontSize going NaN

Open rcyrus opened this issue 12 years ago • 1 comments

Under chrome sometimes getComputedStyle will return "" which then causes parseInt to produce NaN.

If this happens try to get font-size out of the elmement attribute hash so dy attribute can be computed.

rcyrus avatar Dec 04 '12 15:12 rcyrus

Bump to this - @DmitryBaranovskiy (not sure who is in charge of merging PRs for this repo). I've used an identical fix in a local version of raphael, but getting this fix into master so I can use the Bower package would be awesome.

hbarudin avatar Oct 24 '15 20:10 hbarudin