jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 734 forks source link

Scrolling to last item is position-dependant #738

Closed KintarD closed 9 years ago

KintarD commented 9 years ago

http://jsfiddle.net/ww8Lkpqs/2/ - there, first two case shows work of "scrollTail" function (first on div with static positioning, second on div with relative positioning), and second - work of "scroll" function. Due to list.position calls in scrollTail function - it works different.

While adding "position: relative" to your jcarousel containers is not a big deal, i still think that this should at least be reflected somewhere in documentation

alvarovazquez commented 9 years ago

It is actually reflected, isn't it?

From jCaousel installation doc:

/*
This is the visible area of you carousel.
Set a width here to define how much items are visible.
The width can be either fixed in px or flexible in %.
Position must be relative!
*/
.jcarousel {
    position: relative;
    overflow: hidden;
}
/*[...]*/
KintarD commented 9 years ago

oops.. sorry(