From: Vincent Vanwaelscappel Date: Thu, 4 Sep 2025 13:31:22 +0000 (+0200) Subject: wip #7712 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b49e27c83efd1f0477d6e0659d69f1f4b005bf57;p=fluidbook-html5.git wip #7712 @1.5 --- diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index dea04c84..b37c7442 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -156,7 +156,7 @@ FluidbookMenu.prototype = { let $this = this; var infos = this.fluidbook.settings.pdfLinks[uid]; let c = this.getCaption('', 'nocaption', 'nocaption'); - c += '
'; + c += '
'; this.viewWrap(c, 'pdf', '', 'pdf'); if (callback != undefined) { callback(); @@ -1186,7 +1186,7 @@ FluidbookMenu.prototype = { if ($(".indexViewHolder").find('.doubleThumb:not(.simple)').length > 0) { baseWidth = 230; } - var indexWidth = Math.floor(w / baseWidth) * baseWidth; + var indexWidth = Math.max(1, Math.floor(w / baseWidth)) * baseWidth; $(".indexViewHolder").css('width', indexWidth); }