scala-js/scala-js-dom — pull request #31 by mseddon (2014-05-28 21:27:44+00:00)
Title: Change TextMetrics.width to be Double

Everything's blowing up on mobile devices! (Safari iPad3, Firefox/Chrome on Android). The MDN spec in the comment above specifies that this should be a Double ;)

Seems desktops luckily set TextMetrics.width to an integer, but on mobile devices this is not so certain, so I hadn't noticed until just now.