mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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…
x
Reference in New Issue
Block a user