Make the measure text not wrap, fixes #170

This commit is contained in:
Chad Engler 2013-06-13 12:00:28 -07:00
parent 700d3334d7
commit a187067aec

View file

@ -187,7 +187,7 @@ PIXI.Text.prototype.determineFontHeight = function(fontStyle)
var dummy = document.createElement("div");
var dummyText = document.createTextNode("M");
dummy.appendChild(dummyText);
dummy.setAttribute("style", fontStyle);
dummy.setAttribute("style", fontStyle + ';position:absolute;top:0;left:0');
body.appendChild(dummy);
result = dummy.offsetHeight;