From: vincent@cubedesigners.com Date: Wed, 6 Jul 2011 06:50:19 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ca4c7afb12394d2ca321e307d9d1bf39f3540446;p=cubeextranet.git --- diff --git a/inc/ws/Util/packager/class.ws.packager.html5.php b/inc/ws/Util/packager/class.ws.packager.html5.php index 1ba4e4e7e..8b9f04207 100644 --- a/inc/ws/Util/packager/class.ws.packager.html5.php +++ b/inc/ws/Util/packager/class.ws.packager.html5.php @@ -189,23 +189,11 @@ class wsPackagerHTML5 extends wsPackager { $w = $this->book->parametres->width . 'px'; $navTop = ($this->book->parametres->height - 40 - 100) / 2; - $res[] = '.portrait #pages,.portrait .doublePage.page,.texts{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}'; + $res[] = '.portrait #pages,.portrait .doublePage.page,.texts,.page,.background{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}'; + $res[] = '.background{background-size:' . $w . 'px ' . $h . 'px;}'; $res[] = '.doublePage,#pages{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}'; $res[] = '.page.right{left:' . $w . '}'; - foreach (self::$resolutions as $r) { - $wb = round(($this->book->parametres->width * $r) / 72, 2) . 'px'; - $hb = round(($this->book->parametres->height * $r) / 72, 2) . 'px'; - $s = 72 / $r; - - $scale = ''; - if ($s != 1) { - $scale = self::writeCSSUA('transform', 'scale(' . $s . ')'); - } - - $res[] = '.background.r' . $r . '{width:' . $wb . ';height:' . $hb . ';' . $scale . '}'; - } - foreach ($this->cssColor as $color => $index) { $res[] = '.c' . $index . '{color:#' . $color . '}'; }