JQuery FlexSlider: Fix innerHeight computation (#33847)

Fix computation innerHeight
This commit is contained in:
Luigi Teschio 2022-08-03 18:20:42 +02:00 committed by GitHub
parent f71f480027
commit 397a7846b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
JQuery FlexSlider: Fix innerheight computation

View File

@ -376,7 +376,7 @@
methods.setToClearWatchedEvent();
});
},
update: function() {console.log('updating...');
update: function() {
var disabledClass = namespace + 'disabled';
if (slider.pagingCount === 1) {
slider.directionNav.addClass(disabledClass).attr('tabindex', '-1');
@ -623,10 +623,10 @@
slider.viewport.height(slider.h);
slider.setProps(slider.h, "setTotal");
} else {
slider.setProps(slider.computedW, "setTotal");
slider.newSlides.width(slider.computedW);
// SMOOTH HEIGHT:
if (slider.vars.smoothHeight) { methods.smoothHeight(); }
slider.newSlides.width(slider.computedW);
slider.setProps(slider.computedW, "setTotal");
}
}
},