]> _ Git - fluidbook-html5.git/commitdiff
wait #3107 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Oct 2019 14:20:59 +0000 (16:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Oct 2019 14:20:59 +0000 (16:20 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 3cf7133b00cfadf9f3f7bf825e97a708de5c9b82..cb2bd9ebebc01adedad69ab24d0b7049c9f1f7af 100644 (file)
@@ -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) {