From a1ee357286b717bdc1b1269f14dde22922f8be95 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 4 Oct 2019 16:20:59 +0200 Subject: [PATCH] wait #3107 @0.5 --- js/libs/fluidbook/fluidbook.menu.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 3cf7133b..cb2bd9eb 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -244,8 +244,6 @@ FluidbookMenu.prototype = { // TODO: check which type should be passed to fluidbook.stats.track() ??? // this.fluidbook.stats.track(11); - //this.fluidbook.initSlideshow(); - var $this = this; var times = [250, 500, 750, 1000, 1250]; $.each(times, function (k, v) { @@ -827,7 +825,10 @@ FluidbookMenu.prototype = { // (it is already scaled for max-width via CSS) var headerHeight = m.find('.caption').outerHeight(); // Height of title section that also contains close button - var thumbnailsHeight = m.find('.fb-slideshow-thumbnails').outerHeight(); // Thumbnail slider height + var thumbnailsHeight = 0; + if (m.find('.fb-slideshow-thumbnails').length > 0) { + thumbnailsHeight = m.find('.fb-slideshow-thumbnails').outerHeight(); // Thumbnail slider height + } var offset = 0; if (optimizeHeight) { -- 2.39.5