The getPageSize() function in lightbox.js file was returning 0 for the actual page height when my site was viewed in some browsers (especially IE). Result was that the overlay had only the height of the browser window, not the entire page. I fixed this by adding a simple check :

if (yScroll == 0) {
    yScroll = document.documentElement.scrollHeight;                                                             
}

I have tested this in all major browsers and it seems to never fail in getting the actual page height.

Comments

remkor’s picture

Title: Page height is 0 » Returned value for page height was 0