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,7 +287,11 @@ PIXI.Text.prototype.wordWrap = function(text)
|
||||||
result += words[j] + ' ';
|
result += words[j] + ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result += '\n';
|
|
||||||
|
if (i < lines.length-1)
|
||||||
|
{
|
||||||
|
result += '\n';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue