Fixes a rogue new-line character on the end of Text objects that have word wrapping enabled (causing the Text bounds to be 1 line too high).
This commit is contained in:
parent
b4eb403422
commit
6101e25ca9
1 changed files with 5 additions and 1 deletions
|
@ -287,8 +287,12 @@ PIXI.Text.prototype.wordWrap = function(text)
|
|||
result += words[j] + ' ';
|
||||
}
|
||||
}
|
||||
|
||||
if (i < lines.length-1)
|
||||
{
|
||||
result += '\n';
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue