diff options
author | Nivesh Rajbhandari | 2012-04-16 11:20:24 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-16 11:20:24 -0700 |
commit | 7372dd9aa32e404b971efb78c354a9cdfc86c212 (patch) | |
tree | d68852929cc64d9ed399d230836d5c74b9a13b4e /js | |
parent | 77c6ab76ffe9fc380ed6fdb7b29ccd40acaee74d (diff) | |
download | ninja-7372dd9aa32e404b971efb78c354a9cdfc86c212.tar.gz |
Drag and drop of images and components should not add 3d values by default.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/mediators/drag-drop-mediator.js | 4 | ||||
-rwxr-xr-x | js/panels/components-panel.reel/components-panel.js | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/js/mediators/drag-drop-mediator.js b/js/mediators/drag-drop-mediator.js index 9d1b69a9..eedab8fc 100755 --- a/js/mediators/drag-drop-mediator.js +++ b/js/mediators/drag-drop-mediator.js | |||
@@ -130,9 +130,7 @@ exports.DragDropMediator = Montage.create(Component, { | |||
130 | rules = { | 130 | rules = { |
131 | 'position': 'absolute', | 131 | 'position': 'absolute', |
132 | 'top' : (parseInt(e.currentTarget.filePosition.y) - parseInt(this.application.ninja.stage.userContentTop)) + 'px', | 132 | 'top' : (parseInt(e.currentTarget.filePosition.y) - parseInt(this.application.ninja.stage.userContentTop)) + 'px', |
133 | 'left' : (parseInt(e.currentTarget.filePosition.x) - parseInt(this.application.ninja.stage.userContentLeft)) + 'px', | 133 | 'left' : (parseInt(e.currentTarget.filePosition.x) - parseInt(this.application.ninja.stage.userContentLeft)) + 'px' |
134 | '-webkit-transform-style' : 'preserve-3d', | ||
135 | '-webkit-transform' : 'perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)' | ||
136 | }; | 134 | }; |
137 | // | 135 | // |
138 | self.application.ninja.elementMediator.addElements(element, rules); | 136 | self.application.ninja.elementMediator.addElements(element, rules); |
diff --git a/js/panels/components-panel.reel/components-panel.js b/js/panels/components-panel.reel/components-panel.js index acbf702f..cfacd461 100755 --- a/js/panels/components-panel.reel/components-panel.js +++ b/js/panels/components-panel.reel/components-panel.js | |||
@@ -286,9 +286,7 @@ exports.ComponentsPanel = Montage.create(Component, { | |||
286 | var styles = { | 286 | var styles = { |
287 | 'position': 'absolute', | 287 | 'position': 'absolute', |
288 | 'left' : that.dragPosition[0] + 'px', | 288 | 'left' : that.dragPosition[0] + 'px', |
289 | 'top' : that.dragPosition[1] + 'px', | 289 | 'top' : that.dragPosition[1] + 'px' |
290 | '-webkit-transform-style' : 'preserve-3d', | ||
291 | '-webkit-transform' : 'perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)' | ||
292 | }; | 290 | }; |
293 | 291 | ||
294 | var defaultStyles = component.defaultStyles; | 292 | var defaultStyles = component.defaultStyles; |