Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// 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;
This paste will be private.
From the Design Piracy series on my blog: