Add comment explaining maths
This commit is contained in:
parent
a4ef760c7a
commit
4b42933b8a
1 changed files with 1 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue