Dynamic-Carousel icon indicating copy to clipboard operation
Dynamic-Carousel copied to clipboard

IE7 adjRounding Issues

Open mdance opened this issue 14 years ago • 1 comments

I have a carousel with 3 slides, set to 100%.

In IE7, I am experiencing problems which is causing the second slide to not appear leaving just the background of the slider container.

After about ~12 hours, I have narrowed down the problem to the adjRounding function.

Here are the calculations through the function:

When clicking next on the first slide:

diff: 2424 i: 0 left: 0 diff: 2424 i: 1 left: 2424 diff: 2424 i: 2 left: 4848

When clicking next on the second slide:

diff: 1201 i: 0 left: 0 diff: 1201 i: 1 left: 1201 diff: 1201 i: 2 left: 2402

When clicking prev on the third slide:

diff: 11 i: 0 left: 0 diff: 11 i: 1 left: 11 diff: 11 i: 2 left: 22

When clicking prev on the second slide:

diff: 1201 i: 0 left: 0 diff: 1201 i: 1 left: 1201 diff: 1201 i: 2 left: 2402

mdance avatar Nov 24 '11 10:11 mdance

I have a bit more information on this problem, in IE7 the parent.width() function is returning the wrong value. It is returning the total width of the ul container instead of the "visible" width if that makes any sense.

Does anyone have any ideas?

mdance avatar Nov 24 '11 20:11 mdance