Fix issue with group.position not updating when content changes.

This commit is contained in:
Jürg Lehni 2013-12-07 19:17:59 +01:00
parent 462256c14d
commit 2401b38b03

View file

@ -864,10 +864,12 @@ var Item = Base.extend(Callback, /** @lends Item# */{
i < l; i++) {
var item = list[i];
delete item._bounds;
// Delete position as well, since it's depending on bounds.
delete item._position;
// We need to recursively call _clearBoundsCache, because if the
// cache for this item's children is not valid anymore, that
// propagates up the DOM tree.
if (item != this && item._boundsCache)
if (item !== this && item._boundsCache)
item._clearBoundsCache();
}
delete this._boundsCache;