diff options
author | Valerio Virgillito | 2012-04-17 11:08:53 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-17 11:08:53 -0700 |
commit | cacb4a21825818af392c2949967b0f3c1df509c5 (patch) | |
tree | 41d4fbfd5f159f2e605f591dbd5c2ad90008505d /js/mediators | |
parent | ebd9ba757657c159bbed19193f4ff0fd0f57e420 (diff) | |
parent | 7372dd9aa32e404b971efb78c354a9cdfc86c212 (diff) | |
download | ninja-cacb4a21825818af392c2949967b0f3c1df509c5.tar.gz |
Merge pull request #165 from mqg734/BoundsCalculation
Drag and drop of images and components should not add 3d values by default
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/drag-drop-mediator.js | 4 |
1 files changed, 1 insertions, 3 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); |