Skip to content

Commit

Permalink
fix(core): unset top margin on slide when slidesPerColum changed
Browse files Browse the repository at this point in the history
fixes #4658
  • Loading branch information
nolimits4web committed Jun 16, 2021
1 parent 9baae1c commit 1ced4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/update/updateSlides.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default function updateSlides() {
}
slide.css(
getDirectionLabel('margin-top'),
row !== 0 && params.spaceBetween && `${params.spaceBetween}px`,
row !== 0 ? params.spaceBetween && `${params.spaceBetween}px` : '',
);
}
if (slide.css('display') === 'none') continue; // eslint-disable-line
Expand Down

0 comments on commit 1ced4f7

Please sign in to comment.