Pentiado / angular-lazy-img

Lightweight lazy load images plugin. Only 1kb after gziping. Pure JavaScript, only Angular as dependency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

position:fixed not loading

Sajgoniarz opened this issue · comments

There is problem with loading images in elements with or their parents have position fixed.
I have popup which stay always below list of items. At click on one of items Im calling this 'modal', but picture don't loads.

Problem is in this condition :
if (image && lazyImgHelpers.isElementInView(image.$elem[0], options.offset, winDimensions)) { loadImage(image); images.splice(i, 1); }

When i moved loadImage(image) out of condition directive is working fine.