mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Add support for width and height to embedded photos
Noticed that "from the web" images don't respect the width and height settings, this fixes that.
This commit is contained in:
parent
bb15307a8f
commit
03e644ec62
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user