Hi,

I tried to use the following code to a div element. The parent element
is an absolutely positioned div. Everytime I start to drag the
element, the parent element move to the left a few pixels. And also
the div can only move to 20px away from the parent element's edges.

$("#test").draggable({ containment: 'parent', scroll: true, grid: [20,
20] });

I then removed the grid option. That fixed the gap between the div and
parent's edges but still caused the parent element move to the left a
few pixels.

$("#test").draggable({ containment: 'parent', scroll: true });

Could you please help with this one ? Thanks.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to