From a0d9047d7b99e276dd5d25385842a6b56762f851 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Sat, 9 Jul 2011 19:14:05 +0000 Subject: [PATCH] --- inc/ws/Util/packager/class.ws.packager.html5.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/inc/ws/Util/packager/class.ws.packager.html5.php b/inc/ws/Util/packager/class.ws.packager.html5.php index 01d1beb43..fd922ccad 100644 --- a/inc/ws/Util/packager/class.ws.packager.html5.php +++ b/inc/ws/Util/packager/class.ws.packager.html5.php @@ -192,12 +192,20 @@ class wsPackagerHTML5 extends wsPackager { $h = $this->book->parametres->height . 'px'; $w2 = ($this->book->parametres->width * 2) . 'px'; $w = $this->book->parametres->width . 'px'; + $wm = ($this->book->parametres->width * $this->multiply) . 'px'; + $hm = ($this->book->parametres->height * $this->multiply) . 'px'; $navTop = ($this->book->parametres->height - 40 - 100) / 2; - $res[] = '.portrait #pages,.portrait .doublePage.page,.texts,.page,.background{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}'; - $res[] = '.background{background-size:' . $w . ' ' . $h . ';}'; + $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.background{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}'; + $res[] = '.background{background-size:100% 100%;}'; $res[] = '.doublePage,#pages{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}'; $res[] = '.page.right{left:' . $w . '}'; + $texts = '.texts{' . $this->writeCSSUA('transform-origin', 'top left') . ';'; + $texts.=$this->writeCSSUA('transform', 'scale(' . (1 / $this->multiply) . ')') . ';'; + $texts.='width:' . $wm . '; max-width:' . $wm . ';'; + $texts.='height:' . $hm . '; max-height:' . $hm . ';'; + $texts.='}'; + $res[] = $texts; // Theme // Background @@ -387,7 +395,7 @@ class wsPackagerHTML5 extends wsPackager { } protected function getCSSSize(&$size) { - $size = $this->normalizeFloatValue($size*$this->multiply, 3); + $size = $this->normalizeFloatValue($size * $this->multiply, 3); $sizer = $size; return $this->getIndex($sizer, $this->cssSize); } -- 2.39.5