stevenwanderski/bxslider-4 — pull request #537 by mdiniz (2014-05-11 13:39:03+00:00)
Title: Always show the first slide first (issue on chrome)

This patch fixes an issue I was having in chrome with infinite loop. The last slide was always shown first. It worked fine on safari and firefox. It seems that, when the bx-clone elements are added, their height is 0 in chrome, and this somehow causes setPositionProperty to be called with 0 in the snippet below:

// get the position of the first showing slide
var position = slider.children.eq(slider.active.index * getMoveBy()).position();
// check for last slide
if (slider.active.index == getPagerQty() - 1) slider.active.last = true;
// set the repective position
if (position != undefined){
if (slider.settings.mode == 'horizontal') setPositionProperty(-position.left, 'reset', 0);
else if (slider.settings.mode == 'vertical') setPositionProperty(-position.top, 'reset', 0);
}

Setting the height to 1 (or actually any value) prevents such issue. Ugly but it solves the problem.