]> _ Git - cubeextranet.git/commitdiff
wait #3233 @3
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 2 Dec 2019 16:37:35 +0000 (16:37 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 2 Dec 2019 16:37:35 +0000 (16:37 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 6ff4d8b65d213effe9682c70273567fb54c8b57b..832cac69b64b17d80913443ee24cbc846143bee8 100644 (file)
@@ -304,12 +304,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->cssScale = $this->cssOneScale = 480 / $this->width;
+            $this->cssWidth = $this->width * $this->cssScale;
+            $this->cssHeight = $this->height * $this->cssScale;
+            $this->cssOneWidth = $this->cssWidth;
+            $this->cssOneHeight = $this->cssHeight;
+            $this->multiply = $this->pdf2htmlRatio;
             $this->initMobileFirst();
         }
 
@@ -1982,7 +1982,8 @@ class wsHTML5Compiler
         $lessVariables['menu-overlay'] = wsHTML5::colorToCSS($this->theme->parametres->popupVideoOverlay);
 
         // Chapters
-
+        $lessVariables['menu-chapters-columns-count'] = max(1, min(6, $this->book->parametres->chaptersColumns));
+        $lessVariables['menu-chapters-columns-width'] = $this->book->parametres->chaptersColMaxWidth;
 
         foreach ($this->book->chapters as $chapter) {
             if (substr($chapter->page, 0, 1) != '#') {