Setting lineSpacing in the Text Game Object style config would set the value but not apply it to the Text, leaving you to call updateText yourself. If set, it's now applied on instantiation. Fix #4901

This commit is contained in:
Richard Davey 2019-12-18 14:55:12 +00:00
parent f733d1f01e
commit 66a25e2117

View file

@ -285,7 +285,7 @@ var Text = new Class({
if (style && style.lineSpacing)
{
this.lineSpacing = style.lineSpacing;
this.setLineSpacing(style.lineSpacing);
}
scene.sys.game.events.on(GameEvents.CONTEXT_RESTORED, function ()