From: Vincent Vanwaelscappel Date: Fri, 4 Oct 2019 14:20:59 +0000 (+0200) Subject: wait #3107 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a1ee357286b717bdc1b1269f14dde22922f8be95;p=fluidbook-html5.git wait #3107 @0.5 --- 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) {