Actually, I started changing the dimension of the object having the
same problem.

Then, for testing purpose I started changing the containment....

My actual need is:

I have a drag-enabled image... while dragging the user can press
"shift" then
the source of the img (that is being dragged) changes to another
image, which
is the same one but rotated... soo, the user can choose to drop the
image normal
or rotated...

The problem, the new image has different dimensions (if original was
60x20, the new is 20x60)
but the movement restriction is applied to the elem as if it has the
dimension before being drag.
Soo, if rotate, drop, start dragging again the movement restriction
are ok (unless if shift is pressed...)


Solution:
Looking through jQuery source (which I have never looked at before) I
guessed that the dimensions of
the element are used during the start drag event to calculate the
containment dimensions.... Then, I
guess that if it was possible to call the function again, the new
dimension would be calculated and then
the movement would be restricted accordingly....

Thanks!

On Apr 6, 10:01 am, DarkCoiote <[email protected]> wrote:
> I'm changing the containment option of a draggable elem. while it is
> dragging, but the movement restrictions are not applied if I don't
> start the drag over.....
>
> is there a fix? or a function to update dimensions?
>
> I'm changing the containment option within a callback of keypress
> event, if that matters....
>
> 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