From a95604ac4654a98218cb16acd55327151038cb7b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 23 Nov 2020 10:00:52 +0100 Subject: [PATCH] wait #4088 @0:10 --- js/libs/fluidbook/fluidbook.links.js | 4 +++- js/libs/fluidbook/fluidbook.menu.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 40245e9a..e95de568 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -741,7 +741,9 @@ FluidbookLinks.prototype = { initInlineSlideshows: function () { var $this = this; - this.fluidbook.slideshow.clear(); + if (this.fluidbook.slideshow) { + this.fluidbook.slideshow.clear(); + } $(".inlineslideshow").each(function () { if ($(this).is(':visible')) { $this.fluidbook.slideshow.initInlineSlideshow($(this)); diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 214dc634..618a1a2e 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -647,6 +647,7 @@ FluidbookMenu.prototype = { var w = ww * 0.6; var h = hh * 0.8; var forceHeight = false; + var contentHeight = null; var fullscreen = m.data('fullscreen') === '1'; var nw, nh; @@ -829,6 +830,7 @@ FluidbookMenu.prototype = { //m.find('.videoContainer').css({paddingLeft: (w - nw * s) / 2, paddingTop: (h - nh * s) / 2}); } m.find('.videoContainer').css({width: w, height: h}); + contentHeight = h; break; case 'multimedia': @@ -981,7 +983,7 @@ FluidbookMenu.prototype = { if (forceHeight) { css.minHeight = css.height = h; - if (contentHeight === undefined) { + if (contentHeight === null) { ccss.minHeight = ccss.height = h - captionHeight; // if (m.find('.fonctions').length > 0) { -- 2.39.5