Hi, i've noticed that lightbox overlay isn't covering whole page when there is a vertical scrollbar, but in blank html page (without styles) it's working. Can you help me fixing it?

Comments

jackie.taferner’s picture

You should check all the javascripts you're running on that page and see if any of them are interfering with your Lightbox code. You may need to modify IDs, names, and/or Javascript/CSS code to get this thing working properly.

Also, make sure you've used the most up-to-date Lightbox module made for Drupal: http://drupal.org/project/lightbox2. Don't use 3rd-party scripts, as these won't integrate with Drupal's code as easily.

Guide-1’s picture

There is no conflict with id's and javascript... system is using only lightbox2 module. I've asked in lightbox2 discuss forums they said that there is padding/margin problem in container... i'll try to fix by myself...

Guide-1’s picture

The proglem is in body margins... lightbox requires that it should be 0px. How to fix that?

Guide-1’s picture

Fixed by modifying lightbox code.

Mr.nuub’s picture

Could you please tell me how you fixed this? I use the marinelli theme with the lightbox module and i have the same problem.

Thanks in advance.

Mr.nuub’s picture

Could you please tell me how you fixed this? I use the marinelli theme with the lightbox module and i have the same problem.

Thanks in advance.

EDIT: Sorry for double post.

Jean-Rémy Praud’s picture

Hi,

You may have found the answer to your problem, but in case... in lightbox.js, change line 702 in:

$('#lightbox2-overlay').css({'height': '100%', 'width': '100%'});

Hope this will help, even a year after.

EmperorForearm’s picture

The thread may be a year old, but I just ran into the problem, and your help was very much appreciated. The change you suggested worked like a charm.

Diogenes’s picture

Status: Active » Closed (duplicate)

Jean-Remy, thanks for the tip!

I think this may be a lightbox problem and not a Marinelli problem, have said as much here, so I'm closing this.

Of course, anyone who disagrees with this can reverse the decision.