// Change the width to correct size
//this._width = this._width + (textRect["width"] - this._width) / speedFactor;
// Move to the correct x location
//this._x = this._x + (textRect["x"] - this._x) / speedFactor;
var destX = textRect["x"] + ((textRect["width"] - this._width) / 2);
this._x = this._x + (destX - this._x) / speedFactor;