Add comment explaining maths

This commit is contained in:
Garen Torikian 2013-08-23 12:59:50 -07:00
commit 4b42933b8a

View file

@ -161,6 +161,7 @@ var Text = function(parentEl) {
style.overflow = "visible";
style.whiteSpace = "nowrap";
// fixes fractional fixed-width fonts; see http://git.io/CavZNw
var measuredString = "";
for (var i = 0; i < 100; i++)
measuredString += "X";