Remove hard height constraint from previewing uploaded images (#3718)
Fixes #3698. Credit to @gergo85
This commit is contained in:
parent
fd4ee47065
commit
e46eff8a26
|
|
@ -212,7 +212,7 @@ class FileUpload extends FormWidgetBase
|
|||
: 'width: '.$this->imageHeight.'px;';
|
||||
|
||||
$cssDimensions .= ($this->imageHeight)
|
||||
? 'height: '.$this->imageHeight.'px;'
|
||||
? 'max-height: '.$this->imageHeight.'px;'
|
||||
: 'height: auto;';
|
||||
}
|
||||
else {
|
||||
|
|
@ -221,7 +221,7 @@ class FileUpload extends FormWidgetBase
|
|||
: 'width: auto;';
|
||||
|
||||
$cssDimensions .= ($this->imageHeight)
|
||||
? 'height: '.$this->imageHeight.'px;'
|
||||
? 'max-height: '.$this->imageHeight.'px;'
|
||||
: 'height: auto;';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue