1 (edited by svenm73 2013-09-26 16:11:05)

Topic: gallery height percentage IE

Hi,

i am using the Wordpress Plugin with the Pro jbcore. Now when setting the gallery height to 100% it works just fine and in large screen mode the gallery adjusts itself to the browser / monitor size – except for IE here only the thumbnail size is displayed. Setting a fixed pixel value solves this, but of course the gallery is not adjusting itself anymore. Is there a way to solve this? For example a minimum gallery height ? One note: when I show captions it seems the percentage values seem to work also in IE.

thanks and kind regards
Sven

Re: gallery height percentage IE

When using a percentage height, it is necessary to ensure that all parent containers of the gallery have heights specified by CSS so that Juicebox can determine what its own height should be (e.g. if the gallery's height is 100%, Juicebox needs to know what its height should be 100% of).
This can be difficult to ensure in a WordPress environment where parent containers are created by code not generated by WP-Juicebox itself (ie. the active WordPress theme).
Also, when using a percentage height, it may be necessary to implement the suggestion noted here.
Again, this is not practical within WordPress which is why the default value for a WP-Juicebox gallery's height is a fixed pixel value rather than a percentage.
If you really want to set the gallery's height as a percentage, I would recommend trying out different themes to see which ones work best.

Re: gallery height percentage IE

Steven, thanks for your reply – I will go with a fixed value and use the expand button.

I would have one further question – I have set the background opacity to 0 because I am already using a background image within my website. Now, when I expand the gallery, the background stays transparent. Is there a way to have a completely transparent background while in large screen mode – but have a solid background or a background image when the gallery is expanded?

thanks and kind regards
Sven

Re: gallery height percentage IE

Currently, it is a little difficult to set different background colors for normal and fullscreen modes.
One solution I posted in this forum thread involves using the Juicebox-Pro API and JavaScript and would be difficult to integrate into WP-Juicebox.

One possible workaround would be to set expandInNewPage="TRUE" in your gallery's 'Pro Options' text area and, although your expanded gallery's background will still be transparent, the gallery will be displayed against a blank page in your browser.

However, we plan to introduce separate background color controls for normal and fullscreen modes in a future version of Juicebox-Pro (though I do not know when this is likely to be released).

Re: gallery height percentage IE

Juicebox v1.4.0 has just been released and introduces a new expandedBackgroundColor configuration option so it is now possible to set different background colors for normal and expanded modes. Please see this blog entry for details.