Add non-smooth height changes

This commit is contained in:
Atanas Penchev 2024-10-12 20:57:40 +03:00
parent ed173025c4
commit b468cb36c3
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@
smoothHeight: function(dur) {
if (!vertical || fade) {
var $obj = (fade) ? slider : slider.viewport;
(dur) ? $obj.css({"height": slider.slides.eq(slider.animatingTo).innerHeight(), "transition": "height " + dur + "ms"}) : $obj.innerHeight(slider.slides.eq(slider.animatingTo).innerHeight());
$obj.css({"height": slider.slides.eq(slider.animatingTo).innerHeight(), "transition": dur ? ("height " + dur + "ms") : "none"});
}
},
sync: function(action) {