Skip to content

Commit

Permalink
The cumulative offset of the container is irrelevant
Browse files Browse the repository at this point in the history
Since we are only comparing the cumulative offset of the position of the
images that live inside the IFRAME, it doesn't matter where the IFRAME
lives on the parent page.
  • Loading branch information
slusarz committed Nov 13, 2014
1 parent 6eeabb9 commit 32bee34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imp/js/imp.js
Expand Up @@ -189,8 +189,8 @@ var IMP_JS = {
mb_height = mb.getHeight();

/* Load messages within 1 scrolled page of range boundaries. */
range_top = mb.scrollTop + mb.cumulativeOffset().top - mb_height;
range_bottom = mb.scrollTop + mb.cumulativeOffset().top + (2 * mb_height);
range_top = mb.scrollTop - mb_height;
range_bottom = mb.scrollTop + (2 * mb_height);

imgs = Prototype.Selector.select('IMG[data-src]', this.iframeDoc(iframe)).findAll(Element.visible);

Expand Down

0 comments on commit 32bee34

Please sign in to comment.