mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Fix issue with group.position not updating when content changes.
This commit is contained in:
parent
462256c14d
commit
2401b38b03
1 changed files with 3 additions and 1 deletions
|
@ -864,10 +864,12 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
i < l; i++) {
|
i < l; i++) {
|
||||||
var item = list[i];
|
var item = list[i];
|
||||||
delete item._bounds;
|
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
|
// We need to recursively call _clearBoundsCache, because if the
|
||||||
// cache for this item's children is not valid anymore, that
|
// cache for this item's children is not valid anymore, that
|
||||||
// propagates up the DOM tree.
|
// propagates up the DOM tree.
|
||||||
if (item != this && item._boundsCache)
|
if (item !== this && item._boundsCache)
|
||||||
item._clearBoundsCache();
|
item._clearBoundsCache();
|
||||||
}
|
}
|
||||||
delete this._boundsCache;
|
delete this._boundsCache;
|
||||||
|
|
Loading…
Reference in a new issue