var forceHeight = false;
var fullscreen = false;
var nw, nh;
+ var hasCaption = true;
$("#viewOverlay").css({width: ww, height: hh});
} else {
s = w / nw;
-
}
x = 0;
y = 0;
headerHeight = 0;
thumbnailsHeight = 0;
var contentHeight = h;
+ hasCaption = false;
}
-
- m.find('.content').css({top: offset});
-
var slideMaxHeight = h - headerHeight - thumbnailsHeight; // Remaining height that main image + caption has to fit into
+ m.find('.content').css({top: offset});
// Process each slide and calculate optimal height for image and slide container
m.find('.fb-slideshow-slide').each(function () {
// the contents when they don't take up the full height available
$(this).css('height', slideMaxHeight);
- var captionHeight = $(this).find('.fb-slideshow-slide-caption').outerHeight() || 0;
+ var captionHeight = 0;
+ if (!optimizeHeight) {
+ captionHeight = $(this).find('.fb-slideshow-slide-caption').outerHeight() || 0;
+ }
// Allow image to take up whatever height is left after accounting for the caption
// This is only the max-height so the image might not end up being this tall...
}
css.maxWidth = css.minWidth = css.width = w;
css.maxHeight = h;
- ccss.maxHeight = h - captionHeight;
+ if (hasCaption) {
+ ccss.maxHeight = h - captionHeight;
+ } else {
+ ccss.maxHeight = h;
+ }
if (forceHeight) {
css.minHeight = css.height = h;
if (contentHeight === undefined) {
- ccss.minHeight = ccss.height = h - captionHeight;
+ if (hasCaption) {
+ ccss.minHeight = ccss.height = h - captionHeight;
+ } else {
+ ccss.minHeight = ccss.height = h;
+ }
} else {
ccss.minHeight = ccss.height = contentHeight;
}
&-slide {
position: relative;
display: flex !important;
+ .msie & {
+ display: block !important;
+ }
flex-direction: column;
justify-content: center;
text-align: center;
}
&-thumbnails {
- &.fb-slideshow-nothumbs{
+ &.fb-slideshow-nothumbs {
display: none;
}
-
padding: 20px 60px 40px;
img {