remove trace and get drag images working again
authorAndy Allan <gravitystorm@gmail.com>
Sun, 28 Feb 2010 20:18:37 +0000 (20:18 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sun, 28 Feb 2010 20:18:37 +0000 (20:18 +0000)
net/systemeD/potlatch2/TagViewer.mxml

index eed3af0..98f864e 100644 (file)
@@ -24,8 +24,9 @@
                   dragSource.addData(tags, 'tags');
                   
                   var dragProxy:Image = new Image();
-                  dragProxy.source = event.currentTarget.source;
-                  trace(dragProxy.source);
+                  dragProxy.source = dragInitiator.source;
+                  dragProxy.width = dragInitiator.width;   // must set width and height explicitly
+                  dragProxy.height = dragInitiator.height; // for non-embedded images
                   DragManager.doDrag(dragInitiator, dragSource, event, dragProxy);
               }
             ]]></mx:Script>