From 97f8d34ae868d5326f41aa6a9ca88f9f8c6782d6 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 15 Oct 2019 16:03:42 +0200 Subject: [PATCH] fix #3145 @0:15 --- js/libs/fluidbook/fluidbook.menu.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 02d2e503..41af9555 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -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; -- 2.39.5