Wrong bounds/displayTextOrigin on BitmapText text change

updateDisplayOrigin needs current width and height, which are not recalculated if the _dirty is not set to true.
This commit is contained in:
TadejZupancic 2018-08-14 12:15:59 +02:00 committed by GitHub
parent c94404986c
commit 7992924aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,9 +340,9 @@ var BitmapText = new Class({
{
this._text = value.toString();
this.updateDisplayOrigin();
this._dirty = true;
this.updateDisplayOrigin();
}
return this;