... |
... |
@@ -51,8 +51,12 @@ class ContentSlickSliderSlideStart extends \ContentElement
|
51 |
51 |
$this->addImageToTemplate($this->Template, array('singleSRC'=>$this->singleSRC, 'size'=>$this->size));
|
52 |
52 |
|
53 |
53 |
if ($this->eSM_slick_minHeight) {
|
54 |
|
-
|
55 |
|
- $this->Template->minHeight = round($this->Template->picture['img']['height']/$this->Template->picture['img']['width']*100).'%';
|
|
54 |
+ if ($this->eSM_slick_bgSize && $this->eSM_slick_bgSize == 'auto auto') {
|
|
55 |
+ $this->Template->minHeight = $this->Template->picture['img']['height'] . 'px';
|
|
56 |
+ } else
|
|
57 |
+ {
|
|
58 |
+ $this->Template->minHeight = round($this->Template->picture['img']['height'] / $this->Template->picture['img']['width'] * 100) . '%';
|
|
59 |
+ }
|
56 |
60 |
}
|
57 |
61 |
}
|
58 |
62 |
|