I am in the middle of a form builder project, and I feel your pain. The position coord are necessary for draggable to work. I am new to jquery, so don't take my word as bible. Have you looked at using a table for your grid? I use a table and make all my <TD> as droppables. (be careful a large grid will see a performance hit. but your weekly or monthly grid should be fine). After you drop the draggable in a cell you need to remove the positioning CSS coords to make it stick in the cell properly. however you would need to re- TRIGGER draggable event on the dropped element to re-issue the coords so it can be dragged again. By REMOVING the CSS properties upon dropping, you allow the DIV to be positioned in the TD as expected.
MIke On Aug 5, 4:27 am, "Michael Price" <[email protected]> wrote: > 'lo all, > > I am trying to set up a calendar style conference arrangement tool for a > client. Times appear down the left hand side, days across the top, and > sessions in the grid layout. They can be resized to change the timeslots, > and dragged around to change start times, or days. > > In the initial layout the session boxes (which are <div>) are absolutely > positioned, but when UI fires, they become relatively positioned and some of > them then jump out of place. If I drag the first box, the second also moves > as a side effect. > > How do I get around this problem, and additionally is there any in-built way > to prevent two draggables overlapping so that I can't drag one session on > top of another? > > Regards, > > Michael Price --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
