Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Lightbox operation in IE View modes: 
User avatar
Member
Member
ewanm - 12/9/2009 5:32:24 AM
   
Lightbox operation in IE
I have used the lightbox to display photographs on a site and when I use it in Safari, it works great. When I use it in Internet Explorer (several different versions), the box resizes incorrectly sometimes. Can anyone help.

Ewanm

User avatar
Member
Member
ewanm - 12/9/2009 5:35:49 AM
   
RE:Lightbox operation in IE
Sorry for the second post. I clicked ok and waited around 3-4 minutes and nothing happened, clicked OK again and 2 posts. Sorry

Ewanm

User avatar
Member
Member
Alex Rybin - 12/9/2009 5:40:21 AM
   
RE:Lightbox operation in IE
It happens because the script define wrong size of unloaded image or image placeholder.

I fix the problem by this way:
1. Go to /CMSScripts/Lightbox.
2. Open "lightboxLoadex.js" with any editor
3. Find
if ((windowWidth < 0 || windowHeight < 0))
at lines 23, 54, 107 (in my file)
4. Change it to
if ((windowWidth < 50 || windowHeight < 50))
5. Save and reload. May be you should clear the browser cache

Please, note! It will not work if you show images less then 50 pixels at any size.

User avatar
Member
Member
victor-taviatech.com - 12/23/2009 4:53:36 AM
   
RE:Lightbox operation in IE
I dont have the Lightbox folder in the directory u listed above

User avatar
Member
Member
victor-taviatech.com - 12/23/2009 4:55:33 AM
   
RE:Lightbox operation in IE
I used kentico 4.0

User avatar
Member
Member
Alex Rybin - 12/23/2009 6:49:34 AM
   
RE:Lightbox operation in IE
Upgrade?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/23/2009 6:58:17 AM
   
RE:Lightbox operation in IE
Hello,

you may find the lightbox javascripts in this folder in 4.0 version:

<web site folder>\CMSWebParts\Viewers\lightbox_files\


Best regards,
Helena Grulichova