mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
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:
parent
f733d1f01e
commit
66a25e2117
1 changed files with 1 additions and 1 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue