Skip to content

Commit

Permalink
Fix Adaptive Height Slider
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoducnhuiit authored May 6, 2022
1 parent 03a0ea3 commit 9153ffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Block/Widget/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ protected function _construct()
$data['slides-To-Show'] = $data['visible'];
// $data['swipe-To-Slide'] = 'true';
$data['vertical-Swiping'] = $data['vertical'];
$data['adaptive-height'] = $data['adaptive-height'];
if(isset($data['center-Padding'])) $data['center-Padding'] = $data['center-Padding'] . 'px';
// $data['center-Padding'] = $data['padding'];
$data['slide'] = 1;
Expand Down Expand Up @@ -269,7 +270,7 @@ public function getResponsiveBreakpoints()

public function getSlideOptions()
{
return array('autoplay', 'arrows', 'autoplay-Speed', 'speed', 'dots', 'fade', 'infinite', 'padding', 'vertical', 'vertical-Swiping', 'responsive', 'rows', 'slides-To-Show', 'center-Mode', 'center-Padding');
return array('autoplay', 'arrows', 'autoplay-Speed', 'speed', 'dots', 'adaptive-height', 'fade', 'infinite', 'padding', 'vertical', 'vertical-Swiping', 'responsive', 'rows', 'slides-To-Show', 'center-Mode', 'center-Padding');
}

public function getFrontendCfg()
Expand Down

0 comments on commit 9153ffa

Please sign in to comment.