Don't forget to set #_bounds again if recycling.

This fixes the other observed slowdown since the bounds caching code overhaul.
This commit is contained in:
Jürg Lehni 2011-12-26 11:15:47 +01:00
parent 873cd79517
commit dbd3eff84b

View file

@ -1858,6 +1858,7 @@ function(name) {
rect = bounds[type && type.bounds || 'bounds'];
if (rect)
this._position = rect.getCenter(true);
this._bounds = bounds;
} else if (position) {
// Transform position as well.
this._position = matrix._transformPoint(position, position);