$w = $this->width * $this->getCssScale();
$h = $this->height * $this->getCssScale();
- $iw = $this->_config['width'] * $this->getCssScale();
- $ih = $this->_config['height'] * $this->getCssScale();
+ $iw = $this->_config['width'];
+ $ih = $this->_config['height'];
$res = '<iframe width="' . $iw . '" height="' . $ih . '" src="' . $d['fdir'] . '/' . $this->_config['html'] . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
$this->copyExternalDir($d['dir']);
}
}
+ public function getCSSContainer() {
+ if (!($this instanceof contentLink) && $this->page % 2 == 1) {
+ $this->page--;
+ $this->left+=$this->compiler->width;
+ }
+
+ $css = '#l_' . $this->id . '{';
+ $css.='left:' . $this->left * $this->getCssScale() . 'px;top:' . $this->top * $this->getCssScale() . 'px;';
+ $css.='width:' . $this->_config['width'] . 'px;height:' . $this->_config['height'] . 'px;';
+ $css.=$this->getCSS();
+ $css.='}';
+ return $css;
+ }
+
public function getCSS() {
- $sx = $this->width / ($this->_config['width'] * $this->getCssScale());
- $sy = $this->height / ($this->_config['height'] * $this->getCssScale());
+ $sx = ($this->width / ($this->_config['width'])) * $this->getCssScale();
+ $sy = ($this->height / ($this->_config['height'])) * $this->getCssScale();
$res = wsHTML5Compiler::writeCSSUA('transform', 'scale(' . $sx . ',' . $sy . ')');
$res.= wsHTML5Compiler::writeCSSUA('transform-origin', '0% 0%');