From 1c89a4ab4da4b3730c7195fb8efe59e56029497b Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 2 Dec 2019 16:37:35 +0000 Subject: [PATCH] wait #3233 @3 --- .../Util/html5/master/class.ws.html5.compiler.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 6ff4d8b65..832cac69b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -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) != '#') { -- 2.39.5