Merge pull request #874 from bskrtich/develop

Fix incorrect image size between windows and mac.
This commit is contained in:
troosan 2017-11-08 00:45:00 +01:00 committed by GitHub
commit 13dc3bb2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,9 +61,9 @@ class Image extends Frame
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$this->setUnit('px'); $this->setUnit(self::UNIT_PT);
// Backward compatilibity setting // Backward compatibility setting
// @todo Remove on 1.0.0 // @todo Remove on 1.0.0
$this->setWrap(self::WRAPPING_STYLE_INLINE); $this->setWrap(self::WRAPPING_STYLE_INLINE);
$this->setHPos(self::POSITION_HORIZONTAL_LEFT); $this->setHPos(self::POSITION_HORIZONTAL_LEFT);