Fixes auto scaling image from breaking container in Firefox - Refs #1202

This commit is contained in:
Samuel Georges 2015-06-27 11:41:42 +10:00
parent 3681459935
commit bde07ef880

View File

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