jquery-lazyloadanything icon indicating copy to clipboard operation
jquery-lazyloadanything copied to clipboard

Offset not position

Open sidonaldson opened this issue 10 years ago • 2 comments

I think you mean to use offset() rather than position() otherwise it won't work if the lazy loaded elements aren't children of the body!

sidonaldson avatar Dec 08 '14 11:12 sidonaldson

Sorry, I haven't responded early. What are you referring to?

shrimpwagon avatar Feb 19 '15 13:02 shrimpwagon

jQuery position gets the elements XY from it's parent element, offset get it from the page. It's a simple PR so I'll do that when I'm home and you'll see what I mean.

sidonaldson avatar Feb 19 '15 14:02 sidonaldson