carouFredSel-jQuery icon indicating copy to clipboard operation
carouFredSel-jQuery copied to clipboard

progress bar wider than 100% with only one item

Open rolfmeijer opened this issue 11 years ago • 0 comments

When a carousel is created with only one item the progress bar gets wider than 100% because the perc variable, used in the progress bar css width declaration, keeps being calculated. This also happens on the last item of a carousel that is not circular (and/or infinite).

A workaround is relatively easy, override the style attribute from the progress bar in css (with the !important as it is defined as a style attribute on the HTML-element).

But it would be nice if the calculation just stops as it is not necessary anymore.

rolfmeijer avatar May 23 '14 08:05 rolfmeijer