Skip to content

Commit

Permalink
fix(core): autoHeight shouldn't ignore zero height slides
Browse files Browse the repository at this point in the history
fixes #5281
  • Loading branch information
nolimits4web committed Dec 24, 2021
1 parent 3d377c2 commit b3697f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/update/updateAutoHeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ export default function updateAutoHeight(speed) {
}

// Update Height
if (newHeight) swiper.$wrapperEl.css('height', `${newHeight}px`);
if (newHeight || newHeight === 0) swiper.$wrapperEl.css('height', `${newHeight}px`);
}

0 comments on commit b3697f1

Please sign in to comment.