views:

9

answers:

0

The carousel is horizontal, and has 3 items in view, and I am adding the elements by Ajax.

Sometimes I see the width of the <ul> element underneath doubling and even quadrupling every time the "Next" icon is clicked on, so after some 7, 8 times, the width was displayed as scientific notation such as 1.27638e07px, which might be taken as weird number or 1.27px. I think I found a fix, but would be fun if somebody can guess why the reason is without running a debugger and be able to tell why.