I hope this helps.
It does not help.
Juicebox should behave per default like a JPG in a resposive theme: it should scale and all empty space above and below should collapse automatically.
You are not logged in. Please login or register.
Juicebox Support Forum → Posts by smoothgroove
Pages 1
I hope this helps.
It does not help.
Juicebox should behave per default like a JPG in a resposive theme: it should scale and all empty space above and below should collapse automatically.
If you really want to gallery's height to change depending on the height of the image which is currently being displayed, then you will need to use JavaScript to check the image's height (each time a new image is displayed) and adjust the height of the gallery accordingly. You would need to use the Juicebox-Pro API's onImageChange() event and setGallerySize() method.
(Usually, each time a new image is displayed, the gallery's dimensions remain constant and the new image is scaled to fit within the gallery's image area.)
Can you provide a code snippet? I can't find how you can determine the current image's actual height. Thanks.
Pages 1
Juicebox Support Forum → Posts by smoothgroove
Powered by PunBB, supported by Informer Technologies, Inc.