diff options
author | Valerio Virgillito | 2012-03-01 13:38:44 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-03-01 13:38:44 -0800 |
commit | 0a500496236bedbdd9fbbcb3d841a195b3e5fc0f (patch) | |
tree | 0985abebdcf61dab85cfc97170a1c6339a5346eb /js/mediators | |
parent | b09956e4a9a35c5588cc7cd1f01efb617cbe0884 (diff) | |
download | ninja-0a500496236bedbdd9fbbcb3d841a195b3e5fc0f.tar.gz |
stage and elements fixes
- Resizing the iframe container when resizing the stage
- Removing 3d rules from elements when adding them
- Adding a name property in the pi
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/element-mediator.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 127f73e1..60a75992 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -90,10 +90,11 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
90 | _addElement: { | 90 | _addElement: { |
91 | value: function(el, rules, noEvent) { | 91 | value: function(el, rules, noEvent) { |
92 | ElementController.addElement(el, rules); | 92 | ElementController.addElement(el, rules); |
93 | var p3d = this.get3DProperties(el); | 93 | // Commenting this out because we should not add 3D properties by default when creating new elements. |
94 | if(p3d) { | 94 | // var p3d = this.get3DProperties(el); |
95 | el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); | 95 | // if(p3d) { |
96 | } | 96 | // el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); |
97 | // } | ||
97 | if(!noEvent) { | 98 | if(!noEvent) { |
98 | this.application.ninja.documentController.activeDocument.needsSave = true; | 99 | this.application.ninja.documentController.activeDocument.needsSave = true; |
99 | NJevent("elementAdded", el); | 100 | NJevent("elementAdded", el); |