I was trying to troubleshoot "jumpy" Sortables and noticed that when
the function Element.isParent is called from onHover (line 749 in
dragdrop.js v. 1.7.1_beta3) and from onEmptyHover (line 781), the
arguments seem to be in reverse order.

Element.isParent (line 944) expects "child, element(parent)" but is
called with "dropon(parent), element(child)", making it return FALSE
most of the time, when (I think) it should be returning TRUE...

Reversing the arguments order on lines 749 and 781 to
"Element.isParent(element, dropon)" fixes any "jumpiness" in
horizontally arranged Sortables when they overflow on more than 1 line
( I use about 60 small ones - 20x20px and they overflow on 4-5 lines).


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