aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/mediators/drag-drop-mediator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/drag-drop-mediator.js b/js/mediators/drag-drop-mediator.js
index cc384704..c8e781a6 100755
--- a/js/mediators/drag-drop-mediator.js
+++ b/js/mediators/drag-drop-mediator.js
@@ -112,8 +112,8 @@ exports.DragDropMediator = Montage.create(Component, {
112 // 112 //
113 rules = { 113 rules = {
114 'position': 'absolute', 114 'position': 'absolute',
115 'top' : e.currentTarget.filePosition.y + 'px', 115 'top' : (parseInt(e.currentTarget.filePosition.y) - parseInt(this.application.ninja.stage.userContentTop)) + 'px',
116 'left' : e.currentTarget.filePosition.x + 'px' 116 'left' : (parseInt(e.currentTarget.filePosition.x) - parseInt(this.application.ninja.stage.userContentLeft)) + 'px'
117 }; 117 };
118 // 118 //
119 NJevent("elementAdding", {el: element, data: rules}); 119 NJevent("elementAdding", {el: element, data: rules});