Fixed being able to drag an item after the "show more" area
This commit is contained in:
parent
10a2447caa
commit
92a431e37d
|
@ -693,7 +693,14 @@ Node.prototype.moveBefore = function(node, beforeNode) {
|
|||
}
|
||||
|
||||
if (beforeNode instanceof AppendNode) {
|
||||
this.appendChild(node);
|
||||
// the this.childs.length + 1 is to reckon with the node that we're about to add
|
||||
if (this.childs.length + 1 > this.maxVisibleChilds) {
|
||||
var lastVisibleNode = this.childs[this.maxVisibleChilds - 1];
|
||||
this.insertBefore(node, lastVisibleNode);
|
||||
}
|
||||
else {
|
||||
this.appendChild(node);
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.insertBefore(node, beforeNode);
|
||||
|
|
Loading…
Reference in New Issue