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:
photonstorm 2014-02-09 23:52:30 +00:00
parent b4eb403422
commit 6101e25ca9

View file

@ -287,8 +287,12 @@ PIXI.Text.prototype.wordWrap = function(text)
result += words[j] + ' ';
}
}
if (i < lines.length-1)
{
result += '\n';
}
}
return result;
};