By using onStart, do you mean that when the drag begins, it should
start figuring out whether or not it's over the div or not?

Hm, okay. I did a modified version of that, but I used onEnd. I figure
out if I'm over the div or not, and if I am, then I append to the div;
otherwise I append to the body. The biggest problem now is that its
movement is incredibly erratic, and moves while almost disregarding
the mouse. Any tips on that?

On Jun 29, 3:47 pm, Matt <[EMAIL PROTECTED]> wrote:
> 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'sa
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to