MDL-58636 course: Ensure that the drag constraint has height

This commit is contained in:
Andrew Nicols
2017-04-21 10:48:32 +08:00
parent 937831c736
commit 0edc92e6bf
4 changed files with 16 additions and 4 deletions
@@ -661,6 +661,10 @@ DragDrop.prototype = {
return false;
}
while (contstraint.get('scrollHeight') === 0 && !contstraint.compareTo(window.document.body)) {
contstraint = contstraint.get('parentNode');
}
courseul.all('> li').each(function(li) {
this.initCourseListing(li, contstraint);
}, this);
File diff suppressed because one or more lines are too long
@@ -654,6 +654,10 @@ DragDrop.prototype = {
return false;
}
while (contstraint.get('scrollHeight') === 0 && !contstraint.compareTo(window.document.body)) {
contstraint = contstraint.get('parentNode');
}
courseul.all('> li').each(function(li) {
this.initCourseListing(li, contstraint);
}, this);
+4
View File
@@ -69,6 +69,10 @@ DragDrop.prototype = {
return false;
}
while (contstraint.get('scrollHeight') === 0 && !contstraint.compareTo(window.document.body)) {
contstraint = contstraint.get('parentNode');
}
courseul.all('> li').each(function(li) {
this.initCourseListing(li, contstraint);
}, this);