mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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++) {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue