]> _ Git - cubeextranet.git/commitdiff
#1384
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 5 May 2017 10:57:05 +0000 (10:57 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 5 May 2017 10:57:05 +0000 (10:57 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 191b0fa74db984a9989f7345e516623311dbd00c..ee5f5b747953c3e48a745562c9606aeba4352ab3 100644 (file)
@@ -267,6 +267,7 @@ class wsHTML5Compiler {
        }
 
        public function compile() {
+
                $dirsToCreate = array('data/images', 'data/contents', 'data/background', 'data/thumbnails', 'data/style');
                if (in_array('flv', $this->getVideosFormats())) {
                        $dirsToCreate[] = 'swf';
@@ -1145,8 +1146,8 @@ class wsHTML5Compiler {
                }
                $texts = '.texts{' . wsHTML5::writeCSSUA('transform-origin', 'top left') . ';';
                $texts .= wsHTML5::writeCSSUA('transform', 'scale(' . round((1 / $this->multiply) * $cssScale * $this->cssSVGScale, 3) . ')') . ';';
-               $texts .= 'width:' . ($wm / $this->cssSVGScale) . '; max-width:' . ($wm / $this->cssSVGScale) . ';';
-               $texts .= 'height:' . ($hm / $this->cssSVGScale) . '; max-height:' . ($hm / $this->cssSVGScale) . ';';
+               $texts .= 'width:' . ($wm / $this->cssSVGScale) . 'px; max-width:' . ($wm / $this->cssSVGScale) . 'px;';
+               $texts .= 'height:' . ($hm / $this->cssSVGScale) . 'px; max-height:' . ($hm / $this->cssSVGScale) . 'px;';
                $texts .= '}';
                $res[] = $texts;