diff options
author | Nivesh Rajbhandari | 2012-02-03 14:06:26 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-03 14:06:26 -0800 |
commit | 854a6d1be334782c8e232601e6d562a11296e55a (patch) | |
tree | 008f69b921f3a1de6df5871f20def6098452f2a6 /js/stage | |
parent | 91de8f585e93d1a959c7fe56775df371ce6f50d6 (diff) | |
download | ninja-854a6d1be334782c8e232601e6d562a11296e55a.tar.gz |
Update grid and planes when elementChange event signifies the "matrix", "left", "top", "width" or "height" properties have changed.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rw-r--r-- | js/stage/layout.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js index dd5be081..c369fc30 100644 --- a/js/stage/layout.js +++ b/js/stage/layout.js | |||
@@ -74,6 +74,9 @@ exports.Layout = Montage.create(Component, { | |||
74 | handleElementAdded: { | 74 | handleElementAdded: { |
75 | value: function(event) { | 75 | value: function(event) { |
76 | this.domTree.push(event.detail); | 76 | this.domTree.push(event.detail); |
77 | |||
78 | this.draw(); | ||
79 | this.draw3DInfo(false); | ||
77 | } | 80 | } |
78 | }, | 81 | }, |
79 | 82 | ||
@@ -82,6 +85,7 @@ exports.Layout = Montage.create(Component, { | |||
82 | this.domTree.splice(this.domTree.indexOf(event.detail), 1); | 85 | this.domTree.splice(this.domTree.indexOf(event.detail), 1); |
83 | 86 | ||
84 | this.draw(); | 87 | this.draw(); |
88 | this.draw3DInfo(false); | ||
85 | } | 89 | } |
86 | }, | 90 | }, |
87 | 91 | ||