From 2401b38b033c8dec120754f142b749585078d671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 Dec 2013 19:17:59 +0100 Subject: [PATCH] Fix issue with group.position not updating when content changes. --- src/item/Item.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index b666232f..ba5d1180 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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;