]> _ Git - cubeextranet.git/commitdiff
fix #3084
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 27 Sep 2019 17:55:11 +0000 (17:55 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 27 Sep 2019 17:55:11 +0000 (17:55 +0000)
inc/ws/Metier/class.ws.document.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 0941132dae46be523fe1df1f8ea953603d61f94b..7ad0f52c5200818f6289322dd7ffc483bce553bc 100644 (file)
@@ -435,7 +435,7 @@ class wsDocument extends cubeMetier
 
     public function getMobileFirstRatio()
     {
-        return 0.48 * (620 / $this->generalInfos['size'][0]);
+        return 620 / $this->generalInfos['size'][0];
     }
 
     public function makeMiniShot($page)
@@ -663,7 +663,7 @@ class wsDocument extends cubeMetier
         $rratio = $this->getResolutionRatio();
         foreach ($resolutions as $r => $q) {
             $this->makeShotPNM($page, 'html/h' . $r . '-', $r * $rratio, $q, 4, null, false);
-            $this->makeShotPNM($page, 'html/t' . $r . '-', $r * $rratio, $q, 4, null, true);
+            $this->makeShotPNM($page, 'html/t' . $r . '-', $r * $rratio, $q);
         }
         $this->makeSVGFile($page);
     }
@@ -675,7 +675,7 @@ class wsDocument extends cubeMetier
         $rratio = $this->getMobileFirstRatio();
         foreach ($resolutions as $r => $q) {
             $this->makeShotPNM($page, 'mf/h' . $r . '-', $r * $rratio, $q, 4, null, false);
-            $this->makeShotPNM($page, 'mf/t' . $r . '-', $r * $rratio, $q, 4, null, true);
+            $this->makeShotPNM($page, 'mf/t' . $r . '-', $r * $rratio, $q);
         }
     }
 
index 2da83b6af1025b6afa8d2415c4c55a652b46f6db..b7acac90a43e57e2201a31a13dd47459ecea52b1 100644 (file)
@@ -294,6 +294,7 @@ class wsHTML5Compiler
         $this->cssSVGScale = 1;
 
         $this->scale = 1;
+
         if ($this->book->parametres->zoomMode == 1) {
             $this->multiply = $this->pdf2htmlRatio * $this->scale * $this->cssOneScale;
         } else {
@@ -302,6 +303,12 @@ class wsHTML5Compiler
         $this->numerotation = explode(',', $this->book->numerotation);
 
         if ($this->book->parametres->mobileNavigationType === 'mobilefirst') {
+            $this->cssScale = $this->cssOneScale = 1;
+            $this->cssWidth = $this->width;
+            $this->cssHeight = $this->height;
+            $this->cssOneWidth = $this->width;
+            $this->cssOneHeight = $this->height;
+            $this->multiply = 1;
             $this->initMobileFirst();
         }