diff options
author | Nivesh Rajbhandari | 2012-01-30 15:53:11 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-01-30 15:53:11 -0800 |
commit | b88ebb47d82fc1ffebea49c3bf182aaf3c9419af (patch) | |
tree | 44cb3aeec436161ea1a9cc73315d60a1d6e3d6a4 /js/mediators | |
parent | 8b8b9bc1cd033b483f3a5c57acc75dfb56e099a4 (diff) | |
download | ninja-b88ebb47d82fc1ffebea49c3bf182aaf3c9419af.tar.gz |
Fixed issue with elements not drawing in the correct plane.
When first adding an element, force the 3d model to update with the element's webkit transform values.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r-- | js/mediators/element-mediator.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 91b09475..a6f31703 100644 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -92,6 +92,11 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
92 | _addElement: { | 92 | _addElement: { |
93 | value: function(el, rules, noEvent) { | 93 | value: function(el, rules, noEvent) { |
94 | ElementController.addElement(el, rules); | 94 | ElementController.addElement(el, rules); |
95 | var p3d = this.get3DProperties(el); | ||
96 | if(p3d) | ||
97 | { | ||
98 | el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); | ||
99 | } | ||
95 | if(!noEvent) NJevent("elementAdded", el); | 100 | if(!noEvent) NJevent("elementAdded", el); |
96 | } | 101 | } |
97 | }, | 102 | }, |