From: vincent@cubedesigners.com Date: Wed, 3 Apr 2019 15:13:45 +0000 (+0000) Subject: wip #2656 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=95a517ee618829f98a086ebb8d6484af260da9c1;p=cubeextranet.git wip #2656 @0.5 --- diff --git a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php index a206118ff..26ca03a98 100644 --- a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php @@ -1609,7 +1609,7 @@ class wsHTML5Compiler } if ($r == 150 && file_exists($source)) { $d = getimagesize($source); - $this->config->pagesDimensions[$page] = array($d[0], $d[1]); + $this->config->pagesDimensions[$page] = array($this->cssWidth, $d[1] * ($this->cssWidth / $d[0])); } $ok = $this->vdir->copy($source, 'data/background/' . $r . '/' . $backgroundsPrefix . $page . '.jpg'); if (!$ok && $r = 300) {