mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 10:30:18 -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
|
// the n-th message model in the filteredMessages array
|
||||||
listItem = listItems.item(i).getBoundingClientRect();
|
listItem = listItems.item(i).getBoundingClientRect();
|
||||||
message = scope.filteredMessages[i];
|
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
|
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
|
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