MDL-58636 course: Ensure that the drag constraint has height
This commit is contained in:
@@ -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);
|
||||
|
||||
Vendored
+4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user