From 793d34c6d0990cd6bafb2679b5c917017ed58cce Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Tue, 24 Jul 2012 15:10:26 -0700 Subject: IKNinja-1974 - Bounding box gets separated from elements when zooming in/out on banner and animation templates. IN draw-util's element change handler, we need to check for elementModel.pi instead of elementModel.selection now that ninja-content reports its selection as "div" instead of "body". Signed-off-by: Nivesh Rajbhandari --- js/helper-classes/3D/draw-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/helper-classes') diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js index b59bbf39..11c27b03 100755 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js @@ -326,7 +326,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { eltModel = elt.elementModel; eltModel.setProperty("offsetCache", false); - if(eltModel.selection !== "body") { + if(eltModel.pi !== "bodyPi") { if(isChanging) { eltModel.props3D.matrix3d = null; } else { -- cgit v1.2.3