Thanks Christophe. I tried it, and it works great! [except for a few bugs I'm sure are mine, but that's unrelated :P]
And yeah, I found that "other" group by googling google groups for "scriptaculous". Sorry, didn't mean to offend anybody. PS- What other rubyonrails spinoffs are there, besides prototype and s.a.us? Curious. On Oct 26, 2:02 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > Hey there, > > Pi a écrit : > > > (cross posted from the newly started scriptaculous group)Ah. I'm not too > > sure two groups about Prototype/s.a.us is a good thing: > it will dilute the effort. > > > So I know that you can apply horizontal and vertical constraints for a > > draggable in scriptaculous. Question is, can I also put a region > > constraint onto it? That's to say, can I make sure that the draggable > > object stays within the rectangle described by, say, a rectangle (x,y, > > width, height)?Write your own 'snap' callback function. Since it can round > > coordinates > to make the move "stick to grid", it can also apply any constraints > you'd like. > > -- > Christophe Porteneuve aka TDD > [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 -~----------~----~----~----~------~----~------~--~---
