Fix incorrect image size between windows and mac.

See Issue #224
This commit is contained in:
Brandon Skrtich 2016-08-26 11:06:19 -06:00
parent c71069022e
commit 49492b2516

View File

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