Author: jmorliaguet
Date: Sat Mar 11 15:24:20 2006
New Revision: 2578

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- drag-and-drop: must use the cumulative offset in case the page has been
  scrolled



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Sat Mar 11 
15:24:20 2006
@@ -634,7 +634,7 @@
   dragEvent: function(e) {
     var draggable = this._findDraggable(e);
     if (!draggable) {
-      return
+      return false;
     }
     if (this.def.ghosting) {
       var clone = $(draggable.cloneNode(true));
@@ -648,7 +648,7 @@
     } else {
       this.moved = draggable;
     }
-    var pos = Position.page(this.moved);
+    var pos = Position.cumulativeOffset(this.moved);
     this.x0 = pos[0];
     this.y0 = pos[1];
     this.x1 = Event.pointerX(e) - this.x0;
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to