Ticket #5346: sortable-over-out.diff

File sortable-over-out.diff, 799 bytes (added by kswedberg, 10 years ago)

patch

  • (a) jquery.ui.sortable.js vs. (b) (karl)

    a b  
    701701       if(!innermostContainer) return;
    702702
    703703       // move the item into the container if it's not there already
    704         if(this.currentContainer != this.containers[innermostIndex]) {
     704        if(this.containers.length === 1) {
     705          this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
     706            this.containers[innermostIndex].containerCache.over = 1;
     707        } else if(this.currentContainer != this.containers[innermostIndex]) {
    705708
    706709           //When entering a new container, we will find the item with the least distance and append our item near it
    707710           var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[innermostIndex].floating ? 'left' : 'top'];