Fixes auto scaling image from breaking container in Firefox - Refs #1202
This commit is contained in:
parent
3681459935
commit
bde07ef880
|
|
@ -172,6 +172,10 @@ class FileUpload extends FormWidgetBase
|
|||
*/
|
||||
protected function getCssDimensions()
|
||||
{
|
||||
if (!$this->imageWidth && !$this->imageHeight) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$cssDimensions = '';
|
||||
$cssDimensions .= ($this->imageWidth)
|
||||
? 'width: '.$this->imageWidth.'px;'
|
||||
|
|
|
|||
Loading…
Reference in New Issue