On Jan 25, 3:16 pm, Tom Gregory <[EMAIL PROTECTED]> wrote:
> What oversights have you encountered?

It was before Xmas when I last looked at it, so I'm not sure
I correctly recall the details. I wanted first and foremost to
fix the "drag outside scrollable DIV" problem with a systematic
fix, and that required cloning the draggable to a parent (but
then that causes different styles to apply, urk). I had in mind
to build a reliable tree widget that can handle D&D in large
trees, such as the excellent one Jack Slocum has done in
yui-ext.

So I tried fiddling around with stuff related to ghosting and the
handle attribute. It seemed that the logical thing was to use
"handle" to address the drag visual (the clone). It was awkward,
as many parts of the code that should use "handle" actually
use "element" instead, so I needed to work out exactly which
ones to correct - the actions on completion still needs to do
stuff to "element". Some of the actions folk might attach would
need the clome and some the draggable too. The side effect of
this fix would be that the use of the handle option would work in
a wider range of situations - it's pretty limited at present IIRC - I
think handle doesn't work with ghosting or something.

I figured if I could get it to work in all obvious cases by dragging
a clone, I could augment the clone to be a donut or +1px object,
so that was the longer-term goal on the way to a tree.

Anyhow after making slow progress (though I'm a mature
programmer I don't have much browser, JS & CSS exp) and
when I came here for help, google didn't deliver my messages
and I thought you were all ignoring me, so I dropped it.

> 1. Under certain CSS conditions...

Perhaps... but yui-ext handles ok it so it must be feasible.

> 2. Creating the doughnut is extremely difficult for an arbitrary div

I expect so. I'd suggest that in most cases you don't want to drag a
clone of a structured element anyhow, but just a "handle", which can
be limited to a simple element that's otherwise invisible.
The limited support that scriptaculous has for this reflects its
history
in sorting images; not a general type of D&D at all.

If anyone's interested in helping sort some of these issues, I'm
open to suggestions (at [EMAIL PROTECTED]).

Clifford Heath.


--~--~---------~--~----~------------~-------~--~----~
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