ok... so for onEmptyHover, what I have working with your changes is the
following:

  onEmptyHover: function(element, dropon, overlap) {
    var oldParentNode = element.parentNode;
    var droponOptions = Sortable.options(dropon);

    if(!Element.isParent(dropon, element)) {
      var index;

      var children = Sortable.findElements(dropon, {tag:
droponOptions.tag, only: droponOptions.only});
      var child = null;

      if(children) {
        var offset = Element.offsetSize(dropon, droponOptions.overlap)
* (1.0 - overlap);

        for (index = 0; index < children.length; index += 1) {
          if (offset - Element.offsetSize (children[index],
droponOptions.overlap) >= 0) {
            offset -= Element.offsetSize (children[index],
droponOptions.overlap);
          } else if (offset - (Element.offsetSize (children[index],
droponOptions.overlap) / 2) >= 0) {
            child = index + 1 < children.length ? children[index + 1] :
null;
               style = "color: rgb(255, 0, 0);" >
Sortable.createGuide(element);
               dropon.insertBefore(element, child);
               dropon.insertBefore(Sortable._guide, element);
               Sortable.markEmptyPlace(element);
               Sortable.options(oldParentNode).onChange(element);
               droponOptions.onChange(element);
            break;
          } else {
            child = children[index];
            break;
          }
        }
      }


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to