]> _ Git - fluidbook-html5.git/commitdiff
wip #4710 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Sep 2021 17:10:56 +0000 (19:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Sep 2021 17:10:56 +0000 (19:10 +0200)
js/libs/fluidbook/fluidbook.resize.js
style/fluidbook.less

index 5bbc02cbbff86e8566a536fc0b7499e99ab26dc8..1b0c946f5fe25f2cecf48838526d1eeab7b49441 100644 (file)
@@ -382,6 +382,7 @@ FluidbookResize.prototype = {
             scale: [this.bookScale, this.bookScale],
             origin: this.origin,
         }).css({
+            width: this.fww,
             left: this._left(this.fww),
             top: this._top(this.fhh),
         });
index 95a638f0b8aa943b1dd447788724125409e1ecaf..016c4aec721afcd7cd865e7865996d50cde05677 100644 (file)
@@ -413,13 +413,18 @@ body, html {
 
 /* Espaces forcés */
 
-.portrait #pages, .portrait .doublePage.page, .page, .doublePage._3d {
+.page, .doublePage._3d {
   width: 50%;
   max-width: 50%;
   height: 100%;
   max-height: 100%;
 }
 
+.portrait .page{
+  width: 100%;
+  max-width: 100%;
+}
+
 @book-page-width-double: @book-page-width*2;
 
 #links, #searchHighlights {
@@ -464,11 +469,11 @@ body, html {
   .doublePage {
     &._2d.axis_x {
       &.next {
-        transform: translate3d(@book-page-width, 0, 0);
+        transform: translate3d(100%, 0, 0);
       }
 
       &.prev {
-        transform: translate3d(-@book-page-width, 0, 0);
+        transform: translate3d(-100%, 0, 0);
       }
     }
   }