Hey there,

i had a problem that thousands had, a draggable element dissappear
behind the unseen scrollable part. In case of the error i started
searching and found the dragdropextra.js which tries to solve that
problem but that didn't work in my case, for whatever reason. I didn't
had the time to fix the code. So i decided to post a small but working
fix in this group with hope to help other people.

This small fix only appends every draggable object to the body element
before showing it at the cursor so just add this line of code:

document.getElementsByTagName("body")[0].appendChild(this.element);

to the dragdrop.js (v. 1.8.2) after line 339
( this.element.parentNode.insertBefore(this._clone, this.element); ).

This should fix every scrollable error. Tested with FireFox 2.0,3.0
and Internet Explorer 6 and ordered/unordered lists.

If you're not sure if this works for each ghosting just copy the if
clause which decide for the ghosting option and paste it under the
copied if clause and choose a name for the option. But don't forget to
add this option name to the if statement under "finishDrag".

I will upload the modified File as soon as i remember my password :).

With kind regards
DaiLL

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to