$h = $this->book->parametres->height . 'px';\r
$w2 = ($this->book->parametres->width * 2) . 'px';\r
$w = $this->book->parametres->width . 'px';\r
+ $wm = ($this->book->parametres->width * $this->multiply) . 'px';\r
+ $hm = ($this->book->parametres->height * $this->multiply) . 'px';\r
\r
$navTop = ($this->book->parametres->height - 40 - 100) / 2;\r
- $res[] = '.portrait #pages,.portrait .doublePage.page,.texts,.page,.background{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';\r
- $res[] = '.background{background-size:' . $w . ' ' . $h . ';}';\r
+ $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.background{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';\r
+ $res[] = '.background{background-size:100% 100%;}';\r
$res[] = '.doublePage,#pages{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';\r
$res[] = '.page.right{left:' . $w . '}';\r
+ $texts = '.texts{' . $this->writeCSSUA('transform-origin', 'top left') . ';';\r
+ $texts.=$this->writeCSSUA('transform', 'scale(' . (1 / $this->multiply) . ')') . ';';\r
+ $texts.='width:' . $wm . '; max-width:' . $wm . ';';\r
+ $texts.='height:' . $hm . '; max-height:' . $hm . ';';\r
+ $texts.='}';\r
+ $res[] = $texts;\r
\r
// Theme\r
// Background\r
}\r
\r
protected function getCSSSize(&$size) {\r
- $size = $this->normalizeFloatValue($size*$this->multiply, 3);\r
+ $size = $this->normalizeFloatValue($size * $this->multiply, 3);\r
$sizer = $size;\r
return $this->getIndex($sizer, $this->cssSize);\r
}\r