mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -05:00
Fix bug in loadVisibleBodies loop
This commit is contained in:
parent
5fef73ab99
commit
2d54ee16eb
@ -425,6 +425,10 @@ define(function(require) {
|
||||
// the n-th message model in the filteredMessages array
|
||||
listItem = listItems.item(i).getBoundingClientRect();
|
||||
message = scope.filteredMessages[i];
|
||||
if (!message) {
|
||||
// stop if i get larger than the size of filtered messages
|
||||
break;
|
||||
}
|
||||
|
||||
isPartiallyVisibleTop = listItem.top < top && listItem.bottom > top; // a portion of the list item is visible on the top
|
||||
isPartiallyVisibleBottom = listItem.top < bottom && listItem.bottom > bottom; // a portion of the list item is visible on the bottom
|
||||
|
Loading…
Reference in New Issue
Block a user