Make the measure text not wrap, fixes #170
This commit is contained in:
parent
700d3334d7
commit
a187067aec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue