Browse Source

Merge pull request #527 from sp-kilobug/sp-kilobug-patch-6

fix multiline float + move below
pull/350/merge
Lebedev Konstantin 9 years ago
parent
commit
76924cad94
  1. 6
      Sortable.js

6
Sortable.js

@ -639,7 +639,13 @@
after = (moveVector === 1);
}
else if (floating) {
var elTop = dragEl.offsetTop,
tgTop = target.offsetTop;
if (elTop===tgTop) {
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide;
} else {
after = tgTop > elTop;
}
} else {
after = (nextSibling !== dragEl) && !isLong || halfway && isLong;
}

Loading…
Cancel
Save