Topic: Embedded gallery is not correctly displeyd in IE8

I have created a embedded slideshow with Juicebox pro. It displays correctly in IE10 and IE9 but not in IE8.
The URL is http://afrika.delosgaia.nl/visit_to_madagaskar.htm.
I have used the following div
<div id="box_slideshow" style="height: 100% !important; width: 100% !important"> </div>
With IE 8 Juicebox is changing this in inline: height: 911px

I know that IE8 is old and will be abandoned next year (hopefull) but is still used by many XP users and would like to fix this, bot how!

Any help is appreciated because I will have the same with my galleries.

Re: Embedded gallery is not correctly displeyd in IE8

The link you have provided redirects to http://afrika.delosgaia.nl/index.htm and there seems to be only a SimpleViewer gallery on the page. I see neither a Juicebox-Pro gallery, nor the code you posted (only <div id="box_slideshow"></div>).

I'm not sure it will help (as I have not yet seen the page containing your Juicebox-Pro gallery) but take a look at this FAQ (it relates to IE9 but may also be relevant to IE8):
My gallery looks strange in Internet Explorer 9. Why?

Also, if you are embedding your Juicebox-Pro gallery directly into your 'box_slideshow' <div>, then try removing the 'style' attribute from the <div>, set your gallery's dimensions using the galleryWidth and galleryHeight configuration options (in the embedding code) and, if expressing galleryWidth and galleryHeight as percentages, check all parent containers of your 'box_slideshow' <div> to ensure that they all have heights specified via CSS.

There have been a couple of issues specific to IE8 (regarding the opacity of thumbnail frames and the the FADE image transition type) but these have already been addressed and will be fixed in the next version of Juicebox-Pro.
Just to let you know, there are no known issues regarding gallery sizing in IE8.

If you continue to experience difficulties, please post the link to your Juicebox-Pro gallery so that I can take a look and investigate further.

Re: Embedded gallery is not correctly displeyd in IE8

Oeps, typo:
The link is http://afrika.delosgaia.nl/visit_to_madagascar.htm

Re: Embedded gallery is not correctly displeyd in IE8

There is a lot going on within your web page and as it loads, you can visibly see elements shifting around until they settle in place (as the JavaScript and CSS is being rendered by the browser).

There are differences in your web page, not just between versions of Internet Explorer but also between different browsers.
For example, in Firefox 19.0.2, your 'Select Language' combobox is initially completely obscured by the gallery (which it is not in IE10, Chrome 25 or Safari 5.1.7) but it partially appears if you resize the browser window and then maximize it.

As you are expressing your galleryWidth and galleryHeight as percentages, check all parent containers of the Juicebox container (your 'box_slideshow' <div>) to ensure that they all have heights specified via CSS and please see the Using Percentage Heights note in the embedding guide. This suggests using inline CSS on the parent containers rather than on the Juicebox container (your 'box_slideshow' <div>) itself.

If there is a problem with the gallery not being able to determine it's height in certain browsers, then you could perhaps express your gallery's height as a fixed pixel value rather than as a percentage.

Another workaround might be to isolate the gallery completely from the rest of your web page by embedding it using an <iframe>, documented as Option #2 here. As your gallery does not use the Expand Button or Back Button, there should be no drawbacks to using an <iframe>. This should avoid any conflicts with your main page and should hopefully work in all browsers.

Re: Embedded gallery is not correctly displeyd in IE8

Yes, at the moment you have to press F5 after the browserwindow is resized. This will be fixed in a next step when I reinitialize the gallery after a change in browserwindow

About the height problems, I have noticed that the gallery is changing parent div's till the third level. In particular with IE8 and when the webpages is resized. I have fixed this in IE9, IE10, Firefox and Opera with an inline height and width in the parent div and using !important. In IE8 the Gallery software is overrulling the height !important with a complete random height figure.
I have to do some test to see if I can fix the odd behaviour by using absolute and/or clear statements.


I am using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" in all my websites and iFrames is not supported in XHML Strict. (it will probably work). I also don't like iFrames because the webpages with IFrames are not resizable.
For your interest, see: http://afrika.delosgaia.nl/visit_to_mad … ivo.htm#2. You will see a full gallery with thumbs. Check this in IE8 and you will notice that the position of the thumbs is fine but the main picture part is gone. The height is almost 1900 px and the main picture is below the screen. I believe that this is a bug and I haven't noticed it during beta testing last year.

Re: Embedded gallery is not correctly displeyd in IE8

Hi Steven,
I have made a far better solution without problems about unwanted resizing of parent div.
See yourself at http://afrika.delosgaia.nl/visit_to_madagascar.htm.
What I have done is:
$(window).bind('resize load', function(e){
var browserWidth = $('body').width();
if(browserWidth>=1310){
    new juicebox({
        baseUrl: 'http://afrika.delosgaia.nl/design4/header/madagascar/',
        containerId: 'box_slideshow',
        galleryWidth: '917px',
        galleryHeight: '273px',
        backgroundColor: 'rgba(255,255,255,0)'
        });
}
if(browserWidth<1310 && browserWidth>=1110){
new juicebox({
        baseUrl: 'http://afrika.delosgaia.nl/design4/header/madagascar/',
        containerId: 'box_slideshow',
        galleryWidth: '795px',
        galleryHeight: '237px',
        backgroundColor: 'rgba(255,255,255,0)'
        });
}
if(browserWidth<1110){
new juicebox({
        baseUrl: 'http://afrika.delosgaia.nl/design4/header/madagascar/',
        containerId: 'box_slideshow',
        galleryWidth: '619px',
        galleryHeight: '185px',
        backgroundColor: 'rgba(255,255,255,0)'
        });
};});

You will need is jQuery.fn.browserSizr = function(options). See http://data.delosgaia.nl/resources4/jqu … wwsizer.js

Re: Embedded gallery is not correctly displeyd in IE8

Thank you for sharing your solution.
That seems to work well across all browsers (and versions of Internet Explorer).
It would be great if valid code was rendered identically in all browsers but this is not always the case, especially in older browsers.

So far, I have been unable to create a stripped-back test case which fails in IE8 by nesting the 'juicebox-container' <div> in multiple parent containers. As long as all the parent containers have heights specified by inline CSS, the gallery is displayed at the correct height in IE8 (and other browsers).