Commit a2de8e8a authored by git's avatar git Committed by joseph.olstad

Issue #1377936 by dsutter, Diogenes: Overlay Background Size Issue

parent 5580247c
......@@ -285,7 +285,7 @@ Lightbox = {
$("#lightbox2-overlay").hide().css({
'width': '100%',
'zIndex': '10090',
'height': arrayPageSize[1] + 'px',
'height': '100%',
'backgroundColor' : '#' + Lightbox.overlayColor
});
// Detect OS X FF2 opacity + flash issue.
......@@ -693,16 +693,6 @@ Lightbox = {
}
}
// Adjust the page overlay size.
var arrayPageSize = Lightbox.getPageSize();
var arrayPageScroll = Lightbox.getPageScroll();
var pageHeight = arrayPageSize[1];
if (Lightbox.isZoomedIn && arrayPageSize[1] > arrayPageSize[3]) {
var lightboxTop = (Lightbox.topPosition == '' ? (arrayPageSize[3] / 10) : Lightbox.topPosition) * 1;
pageHeight = pageHeight + arrayPageScroll[1] + lightboxTop;
}
$('#lightbox2-overlay').css({'height': pageHeight + 'px', 'width': arrayPageSize[0] + 'px'});
// Gecko browsers (e.g. Firefox, SeaMonkey, etc) don't handle pdfs as
// expected.
if (Drupal.settings.lightbox2.useragent.search('Mozilla') !== -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment