Topic: Gallery height error
Hi,
would you please have a look at my website.
There are two galleries that work just fine.
On desktop computers everything is fine but on small resolution devices there is too much whitespace above and below the galleries.
This is an example of the config.xml:
gallerywidth="100%"
backgroundColor="rgba(238,238,238,1)"
galleryFontFace="sans-serif"
textColor="rgba(102,102,102,1)"
captionBackColor="rgba(0,0,0,0)"
imageShadowBlur="0"
imageTransitionTime="0.5"
galleryTitlePosition="TOP"
buttonBarPosition="OVERLAY_IMAGE"
textShadowColor="rgba(0,0,0,0)"
showOpenButton="false"
flickrShowDescription="true"
imageShadowColor="rgba(0,0,0,0)"
thumbShadowColor="rgba(0,0,0,0)"
thumbDotColor="rgba(0,0,0,0)"
maxThumbColumns="8"
maxCaptionHeight="50"
imageTransitionType="CROSS_FADE"
showThumbsOnLoad="false"
showSmallThumbsOnLoad="false"
showSmallThumbsButton="false"
showSmallPagingText="false"
showThumbsButton="false"
showExpandButton="false"
captionPosition="NONE"
showNavButtons="true"
resizeOnImport="false"
thumbPadding="0"
enableAutoPlay="true"
autoPlayOnLoad="true"
displayTime="2"
goNextOnAutoPlay="true"
This is the code I use in the html:
<script src="galleries/moonscape/jbcore/juicebox.js"></script>
<script>
new juicebox({
baseURL : 'galleries/moonscape',
containerId : "juicebox-container",
galleryWidth: "100%",
galleryHeight: /Android|BlackBerry|iPhone|iPod|Nexus|webOS/i.test(navigator.userAgent) ? '450' : '970',
backgroundColor: "rgba(255,255,255,100)"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->
If I reduce galleryHeight in this line:
galleryHeight: /Android|BlackBerry|iPhone|iPod|Nexus|webOS/i.test(navigator.userAgent) ? '450' : '970',
to 820 e.g., gallery doesn´t use the whole space horizontally.
What can I do?