Lightbox2 - Known Issues

Lightbox Lite in IE - older versions of Lightbox2

There is an issue with Lightbox Lite in IE browsers but only for sites where Drupal is installed in a subdirectory. In such instances, the overlay.png image can not be found. To overcome this issue you will need to edit the lightbox2/css/lightbox_lite.css file and change the path to this image. By default the line is set to:

Keyboard Shortcuts in Opera

Not all of the keyboard shortcuts work in the Opera browser, for example 'z' for toggling the zoom and 'spacebar' for toggling play / pause in slideshows. This can be overcome by updating your shortcut settings in the Opera preferences editor.

Comments

If you have Lightbox2 not working correctly with Opera 10 then you probably have a CSS rule like this:html, body {height: 100%;}

Due to a bug in Opera 10 the page height won't be correct if the html and/ or body element has a height given by CSS.
The only solution I found until now is to remove the CSS rule and everything goes fine.

BTW: Feel free to move this post wherever it may fit. I'm new to Drupal and all the sites here, but maybe it helps other users saving some time for investigation.

Hi,
I solved the same problem, because I need 100% height of page and I found the solution here: http://drupal.org/node/1285208 . I just put the code into the end of lightbox.js file and all browsers including Opera work perfectly.

When you are getting a horizontal scrollbar in Firefox (at least version 3.6 Win) if the page already has a vertical scrollbar this is caused by the circumstance that this scrollbar is not mentioned by the JS pagewidth. For that reason Lightbox2 sets the width of the div#overlay to the total viewport width, which leads to the horizontal scrollbar.

There is quick (& dirty) hack to avoid this (I have not deeply tested any drawbacks, cause it works for me):
- Go to your lightbox2 modul directory and open the lightbox.js file (NOT the lightbox2.js file) from the js subdir.
- Search for the comment "// Adjust the page overlay size." (around line 657)
- Replace the line $('#overlay').css({'height': pageHeight + 'px', 'width': arrayPageSize[0] + 'px'}); with

Theres an issue with lightbox and views with paging. If you create a views with more than one page, then all the lightboxes will show info of the first page. To remedy this I change the lightbox2_handler_field_lightbox2.inc file line 124 like this:

Before:

// We don't actually use the link, but we need it there for lightbox to function.
if (empty($link)) {
// Get the path name.
$path = isset($_GET['q']) ? $_GET['q'] : '<front>';
$link = url($path, array('absolute' => TRUE));
}

After:

// We don't actually use the link, but we need it there for lightbox to function.
if (empty($link)) {
// Get the path name.
$path = isset($_GET['q']) ? $_GET['q'] : '<front>';
//Created By Carlos, look if GET has a page variable and put it on the $path
if(isset($_GET['page'])){
$path = $path .'?page='.$_GET['page'];
}
$link = url($path, array('absolute' => TRUE));
}

I apologize to the community for posting in the wrong place my previous posting. I hope this is the right place. Lightbox2 module, the latest version 6.x-1.11 CSS produces errors, perhaps there will have noticed.
The errors are visible at this address: http://giovanninews.com/errori-validazione-moduli-Drupal
Giovanni