Thank you Dave for your reply.
Unfortunately I don't think this is what I was looking for, I need to
have the position of the targeted element, the one onDragOver receives
as a second argument.
I've been progressing a bit myself on the matter and my current
solution is to use the location cache inside the DDM property of my
However I have some additional questions...
When I pass a padding to the D&D constructor in the config, it seems I
need to pass negative values where I would expect positive values for
padding. A negative padding seems to reduce the "intersection" zone
where as that does not seem logical when looking at the CSS meaning of
padding. Is this intended? I found it a bit confusing.
I was wondering why the location cache is built (everytime) on the
mousedown event of a drag&drop instance? In my application users can
arrange items in a list, but there's no hard limit on the number of
items users can have in that list. When initializing a drag with many
objects, this does create a noticeable delay. Is there a way to only
calculate and cache the position of a drag&drop object on it's
initialization and only refresh the cache when explicitely told?
> Gerry --
> Inside the DragDropMgr.interactionInfo object there are 2 regions to
> Between the info in those two objects you should be able to get the
data you need..
> I would recommend not calling getXY inside the onDragOver method :)
> Does that help?
> Dav Glass
> + Windows: n. - The most successful computer virus, ever. +
> + A computer without a Microsoft operating system is like a dog
> without bricks tied to its head +
> + A Microsoft Certified Systems Engineer is to computing what a
> McDonalds Certified Food Specialist is to fine cuisine +
> ----- Original Message ----
> Sent: Monday, March 3, 2008 5:29:33 AM
> In my onDragOver event I would like to calculate the offset of my drag
> element to the targeted element. Since this event is called a lot
> while dragging, I would like to put as little as possible of code
> inside the function.
> So, should I calculate the offset of the target inside the document
> (and can I use Dom.getXY() for that?) and then substract the dragpoint
> position from it, or is this information somewhere available already
> in for example the DragDropMgr.interactionInfo? If it is I don't seem
> to find it.
> Kind regards,
> Yahoo! Groups Links