From bb1658db27fc3d67e6daaa751eb061928f36619e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 14 Dec 2016 15:31:11 +0000 Subject: [PATCH] #1032 --- inc/ws/Util/html5/class.ws.html5.links.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/class.ws.html5.links.php b/inc/ws/Util/html5/class.ws.html5.links.php index 521051bbd..c3c9c4333 100644 --- a/inc/ws/Util/html5/class.ws.html5.links.php +++ b/inc/ws/Util/html5/class.ws.html5.links.php @@ -147,6 +147,9 @@ class wsHTML5Link { public function __construct($id, $init, &$compiler) { $this->_init = $init; foreach ($init as $k => $v) { + if ($k == 'extra' && CubeIT_Util_Json::isJson($v)) { + $v = CubeIT_Util_Json::decode($v); + } $this->$k = $v; } if (!$this->video_width) { @@ -250,9 +253,14 @@ class wsHTML5Link { $css = '#l_' . $this->id . '{'; $css .= 'left:' . $this->left * $this->getCssScale() . 'px;top:' . $this->top * $this->getCssScale() . 'px;'; $css .= 'width:' . $this->width * $this->getCssScale() . 'px;height:' . $this->height * $this->getCssScale() . 'px;'; + $origin = false; if ($this->rot) { $css .= wsHTML5Compiler::writeCSSUA('transform', 'rotate(' . $this->rot . 'deg)'); - $css .= wsHTML5Compiler::writeCSSUA('transform-origin', '0% 0%'); + $origin = true; + } + if (isset($this->extra->skewX)) { + $css .= wsHTML5Compiler::writeCSSUA('transform', 'skewX(' . $this->extra->skewX . 'deg)'); + $origin = true; } $css .= $this->getCSS(); $css .= '}'; -- 2.39.5