Re: Drag and Drop constraints and container size change
- I think you need to write a function to reset the constraint and call it whenever the container div resizes.
Remember to call dd.resetConstraints() before you set the new constraint values.
> I have an absolutely positioned div inside a relatively positioned div.
> The inner div has a drag and drop object (YAHOO.util.DD) associated with it and the DD has X and Y constraints set.
> The absolute positioning relative to the containing div is used to simplify initial placement of the inner div.
> The issue is that the containing div can be resized as a result of the viewport being resized. I need to reset the constraints accordingly, or better yet, have the DD handle it itself.