aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-03 14:06:26 -0800
committerNivesh Rajbhandari2012-02-03 14:20:20 -0800
commit130c1d3bfeedfc50ab3481c7d8c2e83af224feac (patch)
treeb9fe384325b34a0eefee5ee25288932848846fb9 /js
parent854a6d1be334782c8e232601e6d562a11296e55a (diff)
downloadninja-130c1d3bfeedfc50ab3481c7d8c2e83af224feac.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')
-rw-r--r--js/helper-classes/3D/draw-utils.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index fe617548..08a27618 100644
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -168,7 +168,10 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
168 for(i=0; i < len; i++) { 168 for(i=0; i < len; i++) {
169 item = els[i]; 169 item = els[i];
170 el = item._element || item; 170 el = item._element || item;
171 el.elementModel.props3D.elementPlane.init(); 171 if(el.elementModel.props3D.elementPlane)
172 {
173 el.elementModel.props3D.elementPlane.init();
174 }
172 } 175 }
173 176
174 this.application.ninja.stage.layout.draw(); 177 this.application.ninja.stage.layout.draw();
@@ -1097,7 +1100,6 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
1097 var tmpCanvas = this.application.ninja.stage.canvas; 1100 var tmpCanvas = this.application.ninja.stage.canvas;
1098 var tmpStage = this.application.ninja.currentDocument.documentRoot; 1101 var tmpStage = this.application.ninja.currentDocument.documentRoot;
1099 this.viewUtils.pushViewportObj( tmpCanvas ); 1102 this.viewUtils.pushViewportObj( tmpCanvas );
1100 var tmpStage = this.application.ninja.currentDocument.documentRoot;
1101 1103
1102 // save the source space object and set to the target object 1104 // save the source space object and set to the target object
1103 var saveSource = this._sourceSpaceElt; 1105 var saveSource = this._sourceSpaceElt;