From d6be004ee66bb3ca1a7edac6594d6f17b2602b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 4 Nov 2013 11:43:17 +0100 Subject: [PATCH] Setting a matrix on an item with #transformContent = true should immediately apply it. --- src/item/Item.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/item/Item.js b/src/item/Item.js index 8271d93d..b2da7f30 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -780,6 +780,8 @@ var Item = Base.extend(Callback, /** @lends Item# */{ setMatrix: function(matrix) { // Use Matrix#initialize to easily copy over values. this._matrix.initialize(matrix); + if (this._transformContent) + this.applyMatrix(true); this._changed(/*#=*/ Change.GEOMETRY); },