I second the idea of using an eventhandler of the draggable to handle this logic.
After briefly reviewing the draggables observer class it looks to have 3 events, the one i'd use for your purposes is onStart. Once you receive the event object, find the element being the inner div and append it to the document.body so its no longer contained within your containing div and the browser should resize the element. On Jun 29, 11:05 am, gchucky <[EMAIL PROTECTED]> wrote: > er... okay. i guess i wasn't specific enough in my question. > basically, i want the outer div to automatically resize as if the > inner div wasn't part of it. > > and how do you use change? do you write onDrag:change() in the > draggable's options? > > - gchucky > > On Jun 29, 9:30 am, kangax <[EMAIL PROTECTED]> wrote: > > > you can specify onDrag callback (to calculate and update outer box > > dimensions) which will be executed on every mousemove as you drag an element > > ...http://wiki.script.aculo.us/scriptaculous/show/DraggablesHere's a > > documentation on which options you can use when initializing draggable > > object... > > > Hope this helps > > -- > > View this message in > > context:http://www.nabble.com/Draggable-DIV-and-resizing-parent--tf3998169.ht... > > Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
