jsor/jcarousel — Issue #320:  The problem to start the show with the penultimate or last item.
Author: Polihilop
Created: 2012-02-20 14:03:52+00:00
State: open

sorry for my english. The problem to start the show with the penultimate item and move to the last. Or start the show with the last item and move on to the penultimate.
If we make the browser window is much smaller, everything becomes normal when the page is reloaded. If the penultimate item to go twice to the left, and then move to the last, then everything is fine with any window size.

After initialization, the carousel, I specify the width and the width of the picture and items:
var sliderWidth = $ ('. jcarousel-clip-horizontal'). outerWidth () ;
var el = $ ('# hslider'). children ();
var hwidth = sliderWidth * el.size ();
$ ('# hslider'). css ('width', hwidth 'px') ;/ / specify the width list
$ ('# hslider'). css ('left',-sliderWidth * (productright-1) 'px');
$ ('. jcarousel-item'). css ('width', sliderWidth 'px');
$ ('div.image'). css ('width', sliderWidth 'px');