For now, even though it feels like a messy solution, I've simply
grabbed the selected what should be the droppable using $
('.droppableOverClass') in the draggable's move callback.Like I said, not awesome, but it works. S. On Oct 15, 12:40 pm, "Paul Bakaus" <[EMAIL PROTECTED]> wrote: > Hi, > > unfortunately there is no "good" way to do that right now. What you would > have to do is > to set some variables in the over/out callbacks in the droppables, i.e. > window.currentDroppable, > and in the draggables drag callback check for window.currentDroppable. > > > > On Tue, Oct 14, 2008 at 3:16 PM, drzax <[EMAIL PROTECTED]> wrote: > > > I'm trying to implement a very specific kind of drag and drop sorting > > for which sortables isn't really suitable. Therefore I'm rolling my > > own using draggables and droppables. > > > I need to calculate the exact position within the droppable of the > > draggable being dragged over it. > > > I can't do this from any of the droppable callbacks because there are > > none that fire on every mouse move. The only callback I can find that > > fires on every mouse move is the 'move' callback for the draggable, > > but I can't find any way to access the droppable which the draggable > > is currently over from that callback (the ui object doesn't contain > > any reference to the droppable). > > > So, does anyone know the solution here? On each mouse move I need to > > know where the draggable is currently positioned within the droppable > > it's over. Short of that I need something I can use to calculate that > > (the absolutePosition and height and width of both draggable and > > droppable). > > > Cheers, > > Simon > > -- > Paul Bakaus > UI Architect > --http://paulbakaus.comhttp://www.linkedin.com/in/paulbakaus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
