Author: jmorliaguet
Date: Sun Mar 12 20:23:43 2006
New Revision: 2630

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

- more DnD artefact fixes



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 Sun Mar 12 
20:23:43 2006
@@ -658,7 +658,9 @@
         'height': dim.height + 'px'
       });
       if (this.def.dragging.feedback.clone) {
-        feedback.appendChild(draggable.cloneNode(true));
+        var clone = $(draggable.cloneNode(true));
+        clone.setStyle({'margin': '0'});
+        feedback.appendChild(clone);
       } else {
         feedback.setStyle({
           'border-color': this.def.dragging.feedback.border || '#000',
@@ -999,7 +1001,7 @@
     var x = options.x;
     var y = options.y;
     if (options.duration) {
-      var pos = Position.page(element);
+      var pos = Position.cumulativeOffset(element);
       var x0 = pos[0];
       var y0 = pos[1];
       new CPSSkins.Scheduler(Object.extend(options, {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to