]> _ Git - fluidbook-html5.git/commitdiff
fix #3145 @0:15
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 15 Oct 2019 14:03:42 +0000 (16:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 15 Oct 2019 14:03:42 +0000 (16:03 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 02d2e503ce53a3ee3ee865681717776c349b480e..41af9555cacd2b4113a1703830a01716f27c023a 100644 (file)
@@ -660,14 +660,10 @@ FluidbookMenu.prototype = {
                 if (this.fluidbook.mobilefirst.enabled) {
                     var indexWidth = Math.floor(ww / 230) * 230;
                     $(".indexViewHolder:visible").css('width', indexWidth);
-                    if (this.fluidbook.mobilefirst.enabled) {
-                        var cw = 10 + 130 * this.fluidbook.bookmarks.getBookmarkedGroups(true).length;
-                        fullscreen = (cw >= ww * 0.9);
-                        if (!fullscreen) {
-                            w = Math.max(400, cw + 30);
-                        }
-                    } else {
-                        fullscreen = true;
+                    var cw = 30 + 10 + 130 * this.fluidbook.bookmarks.getBookmarkedGroups(true).length;
+                    fullscreen = (cw >= ww * 0.75) || ww <= 520;
+                    if (!fullscreen) {
+                        w = Math.max(400, cw);
                     }
                 } else {
                     var max = Math.floor((ww * 0.8) / 120) * 120 + 40;