I think the dropIndicator gets its width/height in showDropIndicator. I think
there is default drag/drop code in List. Compare your override against that
code.
On 9/3/10 9:33 AM, "Philip Smith" wrote:
Still experiencing the drop indicator visibility issue.
This method handles the 'dragOver event (and is executing):
private function onDragOver(de:DragEvent):void
{
de.preventDefault();
var owner:List = this.owner as List;
var dropLocal:DropLocation =
owner.layout.calculateDropLocation(de);
trace (dropLocal);
owner.layout.showDropIndicator(dropLoc! al);
}
However, the drop indicator is not visible. I set a breakpoint in the code
above and it appears the width of the drop indicator is 0...
Any ideas how to get this working?
Thanks.
To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 2 Sep 2010 19:15:04 +
Subject: [flexcoders] Drop Target indicator visibility issue
Currently experiencing a 'drop target indicator visibility' issue...
The drop target indicator is not visible when dragging an ItemRenderer in a
Spark List with the following implementation: ( note the 'dragOver handler'
(with 'layout.showDropIndicator' behavior) is in the 'onDragOver' method below):
GroupItemRenderer (referenced in the list above):
Any ideas on how to get this working?
Thanks,
Philip
--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui