From: Vincent Vanwaelscappel Date: Fri, 10 May 2019 13:55:58 +0000 (+0200) Subject: wait #2711 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=455f917cd2c9ed7b266b6f8506e8665bba672e79;p=fluidbook-html5.git wait #2711 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index c5392671..f39585de 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -845,6 +845,10 @@ FluidbookMenu.prototype = { w = 560; } + if (m.find('.print-dialogue').hasClass('compact')) { + w = 500; + } + // Enable fullscreen when there's no longer enough width for the popup if (ww < w) { fullscreen = true; diff --git a/js/libs/fluidbook/fluidbook.print.js b/js/libs/fluidbook/fluidbook.print.js index 0a994bf7..835a2b26 100644 --- a/js/libs/fluidbook/fluidbook.print.js +++ b/js/libs/fluidbook/fluidbook.print.js @@ -76,8 +76,10 @@ FluidbookPrint.prototype = { getView: function (mode) { + var compact = this.fluidbook.mobilefirst.enabled; + // Ensure mode is either download or print (default) - mode = (mode == 'download' ? mode : 'print'); + mode = (mode === 'download' ? mode : 'print'); // Todo: handle RTL differences for page numbers? See fluidbook.index.js for example var leftPageNumber = this.fluidbook.getPhysicalPageNumberOfSide('left'), @@ -92,23 +94,25 @@ FluidbookPrint.prototype = { view = ''; view += '
'; - view += '