Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.November 18, 2014 at 5:21 am in reply to: accordion slider Maximum call stack size exceeded error #352834
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?
November 18, 2014 at 2:32 am in reply to: accordion slider Maximum call stack size exceeded error #352816This reply has been marked as private. -
AuthorPosts
