$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();
}
$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) != '#') {