]> _ Git - fluidbook-html5.git/commitdiff
wait #4718 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 28 Sep 2021 15:50:29 +0000 (17:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 28 Sep 2021 15:50:29 +0000 (17:50 +0200)
js/libs/fluidbook/fluidbook.resize.js
style/fluidbook.less

index 1b0c946f5fe25f2cecf48838526d1eeab7b49441..2a55ff2d83538a18f0dcc3d60e109fdadfd54f21 100644 (file)
@@ -198,17 +198,18 @@ FluidbookResize.prototype = {
         this.fw = this.bookScale * this.fww;
         this.fh = this.bookScale * this.fhh;
 
-        this.resizeBook();
-
         // Hack to fix #2552
         if (this.fluidbook.support.iOS && this.fluidbook.pagetransitions.getTransitionType() === 'flip3d') {
             // $('#fluidbook').css('transform', 'translate3d(0,0,-1px) scale(' + this.bookScale + ',' + this.bookScale + ')');
         }
 
+        this.resizeBook();
         if (this.fluidbook.mobilefirst.enabled) {
             this.fluidbook.mobilefirst.resize();
         }
 
+        this.fluidbook.loader.renderTextsCanvas();
+
         this.centerOffset = this.fw / 4;
         this.fluidbook.pagetransitions.centerBook();
 
@@ -349,13 +350,12 @@ FluidbookResize.prototype = {
         $(p).find('.doublePage').css(css);
 
         this.resizeLinks();
-        this.fluidbook.loader.renderTextsCanvas();
+
     },
 
     resizeLinks: function () {
-        $('#links,.clinks,.ctlinks,#searchHighlights').css({
+        $('#links .container,.clinks,.ctlinks,#searchHighlights').css({
             transform: 'scale(' + this.bookScale + ')',
-            transformOrigin: '0 0'
         });
     },
 
index c2bb69bf8a33fed5444229cc7a22f98e1f75c595..7ad73dd230e456ffe7da42e7b1d3e34a4b3f93c5 100644 (file)
@@ -263,8 +263,7 @@ body, html {
     height: @book-page-height;
 
     &.rightContainer {
-      left: @book-page-width;
-
+      left: 50%;
       .mobilefirst & {
         left: 0;
       }
@@ -409,6 +408,7 @@ body, html {
 
     &.z {
       display: none;
+
       .zoomed & {
         display: block;
       }
@@ -434,15 +434,10 @@ body, html {
 @book-page-width-double: @book-page-width*2;
 
 #links, #searchHighlights {
-  width: @book-page-width-double;
-  max-width: @book-page-width-double;
-  height: @book-page-height;
-  max-height: @book-page-height;
-
-  .mobilefirst & {
-    width: 100%;
-    max-width: 100%;
-  }
+  width: 100%;
+  max-width: 100%;
+  height: 100%;
+  max-height: 100%;
 }
 
 .doublePage, #pages {
@@ -450,11 +445,6 @@ body, html {
   max-width: 100%;
   height: 100%;
   max-height: 100%;
-
-  .mobilefirst & {
-    width: 100%;
-    max-width: 100%;
-  }
 }
 
 .landscape {
@@ -502,7 +492,7 @@ body, html {
 }
 
 #links.right {
-  left: -@book-page-width;
+  left: -50%;
 }
 
 #currentDoublePage {
@@ -1329,6 +1319,10 @@ html.ios body.portrait #interface {
   background-color: rgba(0, 0, 0, 0.001);
 }
 
+#links, #links .container, .clinks, .ctlinks, #searchHighlights {
+  transform-origin: 0 0 0;
+}
+
 .rtl .portrait #links {
   .leftContainer {
     left: 0;