Hi On Apr 20, 2:12 am, gantww <[email protected]> wrote: > Hello all, > I have an application that dynamically adds images to a container. The > images are set to be both resizable and draggable. I'm trying to make > it so that the user can't put any part of the image outside of the > container, but I'm having major difficulty, as the resizable plugin > allows my images to resize out of the container.
I don't have a solution but I'm voicing that I am having a similar problem with resizable containment (and also similarly: NO problem with draggable containment). I had 2 sibling divs, both absolutely positioned, one meant to act as a containment area, and the other as the resizable element above it, specifying the containment as a jquery object reference was broken in that case: incorrect computed size in some instances, and containment boundaries ignored. In another scenario, my resizable div was a direct child of the containment div. By specifying the containment as 'parent', the boundary constraint worked BUT the resizable behaviour was broken as well, resizing incorrectly when dragging the sw and nw handles near the left edge of the containment (for some reason :/ ). There was no problem with the se and ne handles. I see there is practically no change to resizable in svn compared to the 1.7.1 release, I'll check the code a bit to see if I can come up with a solution. Tim. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
