]> _ Git - fluidbook-html5.git/commitdiff
wait #2720 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 May 2019 09:50:23 +0000 (11:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 May 2019 09:50:23 +0000 (11:50 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 5ca039b3b7996c409144e5f03f0d1ca1b891f245..8e30e27c7fb5ad8492c4b0d5802277e3affecda0 100644 (file)
@@ -604,7 +604,7 @@ FluidbookMenu.prototype = {
                 var indexWidth = Math.floor(ww / 230) * 230;
                 $("#indexViewHolder").css('width', indexWidth);
                 if (this.fluidbook.mobilefirst.enabled) {
-                    var cw = 130 * this.fluidbook.datas.pages;
+                    var cw = 10 + 130 * this.fluidbook.datas.pages;
                     fullscreen = (cw >= ww * 0.9);
                     if (!fullscreen) {
                         w = cw + 30;
@@ -663,7 +663,7 @@ FluidbookMenu.prototype = {
                     var indexWidth = Math.floor(ww / 230) * 230;
                     $("#indexViewHolder").css('width', indexWidth);
                     if (this.fluidbook.mobilefirst.enabled) {
-                        var cw = 130 * this.fluidbook.datas.pages;
+                        var cw = 10 + 130 * this.fluidbook.datas.pages;
                         fullscreen = (cw >= ww * 0.9);
                         if (!fullscreen) {
                             w = cw + 30;