Closed (duplicate)
Project:
Marinelli
Version:
6.x-2.95
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2009 at 17:34 UTC
Updated:
3 Aug 2012 at 10:10 UTC
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
Comment #1
jackie.taferner commentedYou 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.
Comment #2
Guide-1 commentedThere 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...
Comment #3
Guide-1 commentedThe proglem is in body margins... lightbox requires that it should be 0px. How to fix that?
Comment #4
Guide-1 commentedFixed by modifying lightbox code.
Comment #5
Mr.nuub commentedCould 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.
Comment #6
Mr.nuub commentedCould 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.
Comment #7
Jean-Rémy Praud commentedHi,
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.
Comment #8
EmperorForearm commentedThe 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.
Comment #9
Diogenes commentedJean-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.