UseAllFive / true-visibility

Checks if a DOM element is truly visible
http://useallfive.com/javascript-tool-detect-if-a-dom-element-is-truly-visible/
Other
109 stars 26 forks source link

sometimes are some images visiblity false #6

Open panther7 opened 10 years ago

panther7 commented 10 years ago

Hi,

Sometimes are some images visiblity false. Eg. http://www.ceskenoviny.cz/zpravy/porosenko-chce-usporadat-kulaty-stul-vzbourenci-zadaji-o-uznani-nezavislosti/1090210?utm_source=rss&utm_medium=feed - http://i3.cn.cz/1402133763_P201406070160901.jpg

Script return true on exception on line#76 https://github.com/UseAllFive/true-visibility/blob/master/visibility.js#L76 t + VISIBLE_PADDING > p.offsetHeight + p.scrollTop ||

jasonfarrell commented 10 years ago

@panther7 how do you hide the image? Let me know and I'll find out why it's not catching it.

panther7 commented 10 years ago

Go to: http://www.ceskenoviny.cz/zpravy/porosenko-chce-usporadat-kulaty-stul-vzbourenci-zadaji-o-uznani-nezavislosti/1090210 Start web console and run this script: http://pastebin.com/e0kQ7twY

Script return false, but image is really visible.

panther7 commented 9 years ago

Next page, where script does not works: http://tv.nova.cz/clanek/novinky/televize-nova-hleda-pristi-superstar-prihlasit-se-muzes-uz-dnes.html