Text update
This commit is contained in:
parent
2a6169a952
commit
34b6352a57
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ PIXI.Text = function(text, style)
|
|||
this.setStyle(style);
|
||||
|
||||
this.updateText();
|
||||
+ this.dirty = false;
|
||||
this.dirty = false;
|
||||
};
|
||||
|
||||
// constructor
|
||||
|
@ -73,7 +73,7 @@ PIXI.Text.prototype.updateText = function()
|
|||
this.context.font = this.style.font;
|
||||
|
||||
//split text into lines
|
||||
var lines = this.text.split("\n");
|
||||
var lines = this.text.split(/(?:\r\n|\r|\n)/);
|
||||
|
||||
//calculate text width
|
||||
var lineWidths = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue