arseniq a écrit : > Hi, > > that's ok if you need to limit only where draggable can go but i want > to be able that draggable element jumps for 20px and can be dragged > inside the parentNode > > is this possible too_?
I believe there's an example for "jumping" (I assume you mean movement has a 20px resolution) on the wiki. As for position constraints, you can also handle this with the same callback function, but you'll need the Position object's methods to determine the parent container's coordinates and bound your movements within those. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
