mirror of
https://github.com/getgrav/grav.git
synced 2026-06-25 09:30:57 +02:00
Fixed auto width and height in markdown
This commit is contained in:
@@ -459,7 +459,7 @@ trait ImageMediaTrait
|
||||
public function width($value = 'auto')
|
||||
{
|
||||
if (!$value || $value === 'auto') {
|
||||
$this->attributes['width'] = $this->get('width');
|
||||
$this->attributes['width'] = null;
|
||||
} else {
|
||||
$this->attributes['width'] = $value;
|
||||
}
|
||||
@@ -483,7 +483,7 @@ trait ImageMediaTrait
|
||||
public function height($value = 'auto')
|
||||
{
|
||||
if (!$value || $value === 'auto') {
|
||||
$this->attributes['height'] = $this->get('height');
|
||||
$this->attributes['height'] = null;
|
||||
} else {
|
||||
$this->attributes['height'] = $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user