Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following work-around works for me, and should make it easier to fix the problem:
var Lightbox = Lightbox || {};
Lightbox.oldGetPageSize = Lightbox.getPageSize;
Lightbox.getPageSize = function() {
var pageSizes = Lightbox.oldGetPageSize();
pageSizes[1] = Math.max(
Math.max(document.body.scrollHeight, document.documentElement.scrollHeight),
Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
Math.max(document.body.clientHeight, document.documentElement.clientHeight)
);
return pageSizes;
}
Comments
Comment #0.0
falcon CreditAttribution: falcon commentedRemove irrelevant line of code
Comment #1
falcon CreditAttribution: falcon commentedTo reproduce the issue, use Opera 11 (I used Opera 11.51 on Windows 7) go to:
http://ndla.no/en/node/9166?fag=42&tema=56266&meny=171
click on "ANNE SCOTT HAGEN", a lightbox will open. Scroll down to the bottom of the page.
The bug on the url mentioned above will be fixed with the above workaround on October 7th, so you'll have to check it out before October 7th...
Comment #1.0
falcon CreditAttribution: falcon commentedFix typo...