shortcodes.js > $.AviaccodionSlider.prototype
var _self = this,
containerWidth = this.$slider.width(),
defaultPos = this.$last.data(‘av-left’),
imgWidth = this.$images.filter(‘:last’).width() || containerWidth,
imgWidthPercent = Math.floor((100 / containerWidth) * imgWidth),
allImageWidth = imgWidthPercent * _self.count,
modifier = 3, // 10 – _self.count,
tempMinLeft = 100 – imgWidthPercent,
minLeft = tempMinLeft > defaultPos / modifier ? tempMinLeft : 0,
oneLeft = minLeft / (_self.count -1 ),
titleWidth = imgWidth;
if(allImageWidth < 110)
{
//set height if necessary
var slideHeight = this.$slider.height(),
maxHeight = (slideHeight / allImageWidth) * 110 ;
this.$slider.css({‘max-height’: maxHeight});
_self._calcMovement(event);
return;
}
here is infinite loop. >> if(allImageWidth < 110)
Is there a recommended image size?