Closed (fixed)
Project:
Denver
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2008 at 02:54 UTC
Updated:
29 Sep 2010 at 14:09 UTC
I found a problem when using Lightbox2 to display pictures. Normally, when Lightbox activated, the whole content area of brower becomes transparent dark grey and the picture is shown just at the center with white background. However, by Denver theme under IE6, only left half becomes transparent dark grey and the picture is also at left side. Please refer to the screenshot attached.
I tried Denver with IE7. Lightbox functioned correctly. I tried themes like garland, bluemarine and others with IE6. Lightbox worked well, too.
By the way, I use Image module for my pictures.
| Comment | File | Size | Author |
|---|---|---|---|
| screen.jpg | 92.41 KB | artrow |
Comments
Comment #1
artrow commentedneed help!
Comment #2
stella commentedThis sounds like a problem with the theme rather than the module I'm afraid. I don't have an instance of IE6 (only IE7) installed, so I can't even reproduce the issue.
Cheers,
Stella
Comment #3
dda commentedHello,
I'm experiencing the same problem described by artrow.
Indeed it's probably an issue with the Denver theme's Javascript for IE6, since Lightbox works fine in FF.
Stella, would you please mind giving it a try ?
I'm no Javascript expert and exploring the complex interactions between Lightbox and the Denver theme
is far beyond my possibilities...
Lots of people are still using IE6, because IE7 breaks lots of existing websites.
"Multiple IE's" allows you to run several instances of IE on the same machine.
Multiple IE
Multiple IE - IE7_standalone
Thank you in advance!
Cheers,
Dan
Comment #4
stella commentedI don't believe the issue is a javascript one. It's more than likely a CSS one. I've been able to reproduce it in the Denver theme in IE6 but I'm not familiar enough with the workings of the Denver theme to provide any assistance. The Denver theme maintainer should hopefully be able to help you.
Cheers,
Stella
Comment #5
dda commentedSolution!
Stella, you were right and I'm glad to say I've finally found a solution!
The problem is IE not interpreting
width: 100%;on #lightbox.I forced it to understand by mean of a Dynamic Expression.
To solve this issue:
Voilà! Now IE6 behaves as expected.
Cheers,
Dan
BTW: Lightbox2 really rocks! Thank you for providing and actively supporting this brilliant module!
Comment #6
colorado commentedHi,
Thank you for reporting this and sharing a fix!
Please let me know if/what I can add/change in the code of the Denver Theme to prevent this problem...
Comment #7
dda commentedHi,
You are most welcome. Thank you for releasing the Denver Theme :-)
Honestly I don't know if/what you could do in the Denver Theme code. I've tried to understand the reason, but couldn't find it. Further investigating this issue, which only affects IE6 (hopefully on its way to become obsolete), would take too much time and effort to my opinion, hence the fix using proprietary code and only in the ie css file.
Cheers,
Dan
Comment #8
colorado commentedComment #9
sylvain_a commentedYay! The solution in comment #5 works on IE6 and is a good solution (not just within the Denver theme).
Comment #10
kalyanrevadi commentedThe Above Solution Works. Another simple solution for IE6 is to use offsetwidth and height i.e,
height:expression(document.compatMode=='CSS1Compat'? document.body.offsetHeight+'px' : document.body.offsetHeight+'px');
width: expression(document.compatMode=='CSS1Compat'? document.documentElement.offsetWidth+'px' : body.offsetWidth+'px');
or
simply:
height: document.body.offsetHeight;
width: document.body.offsetWidth;
Hope this helps.
Cheers,
Kalyan Revadi
Comment #11
taisei516 commentedTHANK U comment #5!!
it is amazing info!!!