]> _ Git - fluidbook-html5.git/commitdiff
wait #4957 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 10 Dec 2021 15:19:32 +0000 (16:19 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 10 Dec 2021 15:19:32 +0000 (16:19 +0100)
js/libs/fluidbook/fluidbook.bookmarks.js
js/libs/fluidbook/menu/fluidbook.index.js

index 38214edd77d35141d9a68eed4fb7422d96bc31ed..69b9799f39b806dccc5d597eb87617139ba8a96f 100644 (file)
@@ -492,7 +492,7 @@ FluidbookBookmarks.prototype = {
                 var dim = this.fluidbook.menu.index.getThumbDimensions(group.page);
 
                 index += '<div class="doubleThumb simple left"' + dim.doublethumb + ' page="' + group.page + '" data-pages="' + pages.join(',') + '">';
-                index += this.fluidbook.menu.index._thumb(group.page, 'left', 100, group.name);
+                index += this.fluidbook.menu.index._thumb(group.page, 'left', this.fluidbook.mobilefirst.enabled?undefined:100, group.name);
                 if (this.fluidbook.bookmarks.enabled) {
                     index += this.fluidbook.bookmarks.getBookmarkForPage(group.page, true, true);
                 }
@@ -513,7 +513,7 @@ FluidbookBookmarks.prototype = {
                 var dim = this.fluidbook.menu.index.getThumbDimensions(p);
 
                 index += '<div class="doubleThumb simple left"' + dim.doublethumb + ' page="' + p + '" data-pages="' + p + '">';
-                index += this.fluidbook.menu.index._thumb(p, 'left', 100);
+                index += this.fluidbook.menu.index._thumb(p, 'left', this.fluidbook.mobilefirst.enabled?undefined:100);
                 if (this.fluidbook.bookmarks.enabled) {
                     index += this.fluidbook.bookmarks.getBookmarkForPage(p, true, true);
                 }
index 6faeabc0d93ba08aa775dfcbfd38b2ab707123e8..4ae482d22dc7cccbd2e95b60c6e345fdd7151ab0 100644 (file)
@@ -218,7 +218,6 @@ FluidbookIndex.prototype = {
             height = 'auto';
         }
         if (this.fluidbook.mobilefirst.enabled) {
-
             var ph;
             if (height === 'auto') {
                 ph = this.fluidbook.loader.getPageDimensions(page, 100).height;
@@ -226,6 +225,8 @@ FluidbookIndex.prototype = {
                 ph = height;
             }
 
+            console.log(page, height, ph);
+
             h = ' style="height:' + ph + 'px;"'
             pnt = ' style="top:' + (ph - 5) + 'px;" data-top="' + (ph - 5) + '"';
             dth = ' style="height:' + ph + 'px;" data-height="' + ph + '" ';