diff --git a/oembed/Oembed.php b/oembed/Oembed.php index da94dccf9..0c8c55cc6 100644 --- a/oembed/Oembed.php +++ b/oembed/Oembed.php @@ -238,7 +238,14 @@ class Oembed_Result extends ViewableData { if(isset($options['class'])) { $this->extraClass = $options['class']; } - + if($options) { + if(isset($options['width'])) { + $this->Width = $options['width']; + } + if(isset($options['height'])) { + $this->Height = $options['height']; + } + } parent::__construct(); }