]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Sat, 9 Jul 2011 19:14:05 +0000 (19:14 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Sat, 9 Jul 2011 19:14:05 +0000 (19:14 +0000)
inc/ws/Util/packager/class.ws.packager.html5.php

index 01d1beb435948dbbba208ac3b4892591f75dbc7c..fd922ccad04af025d308668e09341d6576eaad91 100644 (file)
@@ -192,12 +192,20 @@ class wsPackagerHTML5 extends wsPackager {
                $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
@@ -387,7 +395,7 @@ class wsPackagerHTML5 extends wsPackager {
        }\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