Skip to content

Commit

Permalink
Remove hard height constraint from previewing uploaded images (octobe…
Browse files Browse the repository at this point in the history
  • Loading branch information
gergo85 authored and LukeTowers committed Aug 23, 2018
1 parent fd4ee47 commit e46eff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/backend/formwidgets/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected function getCssDimensions($mode = null)
: 'width: '.$this->imageHeight.'px;';

$cssDimensions .= ($this->imageHeight)
? 'height: '.$this->imageHeight.'px;'
? 'max-height: '.$this->imageHeight.'px;'
: 'height: auto;';
}
else {
Expand All @@ -221,7 +221,7 @@ protected function getCssDimensions($mode = null)
: 'width: auto;';

$cssDimensions .= ($this->imageHeight)
? 'height: '.$this->imageHeight.'px;'
? 'max-height: '.$this->imageHeight.'px;'
: 'height: auto;';
}

Expand Down

0 comments on commit e46eff8

Please sign in to comment.