diff --git a/src/LayoutNode.js b/src/LayoutNode.js
index <HASH>..<HASH> 100644
--- a/src/LayoutNode.js
+++ b/src/LayoutNode.js
@@ -50,11 +50,23 @@ define(function(require, exports, module) {
      */
     LayoutNode.prototype.reset = function() {
         this._invalidated = false;
-        this._spec.transform = undefined;
         this.trueSizeRequested = false;
     };
 
     /**
+     * Set the spec of the node
+     *
+     * @param {Object} spec
+     */
+    LayoutNode.prototype.setSpec = function(spec) {
+        this._spec.align = spec.align;
+        this._spec.origin = spec.origin;
+        this._spec.size = spec.size;
+        this._spec.transform = spec.transform;
+        this._spec.opacity = spec.opacity;
+    };
+
+    /**
      * Set the content of the node
      *
      * @param {Object} set
@@ -75,6 +87,9 @@ define(function(require, exports, module) {
                 rotate: set.rotate || [0, 0, 0]
             });
         }
+        else {
+            this._spec.transform = undefined;
+        }
         this.scrollLength = set.scrollLength;
     };
Added setSpec function for compatibility with FlowLayoutNode