Remove hard height constraint from previewing uploaded images (#3718)

Fixes #3698. Credit to @gergo85
This commit is contained in:
Szabó Gergő 2018-08-23 17:32:18 +02:00 committed by Luke Towers
parent fd4ee47065
commit e46eff8a26
1 changed files with 2 additions and 2 deletions

View File

@ -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;';
}