aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-16 10:35:33 -0700
committerValerio Virgillito2012-03-16 10:35:33 -0700
commit8b6dc6097fbd974df5363a72756de649794363b6 (patch)
tree22e3cbd1d3cba24d1e32aa0574d96e1ca9eff5d2 /js
parentc9b03565de5e60b50d0e5f80e40169be1efe339e (diff)
downloadninja-8b6dc6097fbd974df5363a72756de649794363b6.tar.gz
fixing the drag and drop images to the pasteboard
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/mediators/drag-drop-mediator.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/mediators/drag-drop-mediator.js b/js/mediators/drag-drop-mediator.js
index 5fe61167..3a965be5 100755
--- a/js/mediators/drag-drop-mediator.js
+++ b/js/mediators/drag-drop-mediator.js
@@ -117,7 +117,9 @@ exports.DragDropMediator = Montage.create(Component, {
117 rules = { 117 rules = {
118 'position': 'absolute', 118 'position': 'absolute',
119 'top' : (parseInt(e.currentTarget.filePosition.y) - parseInt(this.application.ninja.stage.userContentTop)) + 'px', 119 'top' : (parseInt(e.currentTarget.filePosition.y) - parseInt(this.application.ninja.stage.userContentTop)) + 'px',
120 'left' : (parseInt(e.currentTarget.filePosition.x) - parseInt(this.application.ninja.stage.userContentLeft)) + 'px' 120 'left' : (parseInt(e.currentTarget.filePosition.x) - parseInt(this.application.ninja.stage.userContentLeft)) + 'px',
121 '-webkit-transform-style' : 'preserve-3d',
122 '-webkit-transform' : 'perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)'
121 }; 123 };
122 // 124 //
123 NJevent("elementAdding", {el: element, data: rules}); 125 NJevent("elementAdding", {el: element, data: rules});