bxslider-3 icon indicating copy to clipboard operation
bxslider-3 copied to clipboard

bxSlider simultaneously shows two different images, one with ~20% and the other with ~80%

Open colabeer opened this issue 12 years ago • 7 comments

Good Morning,

i use a roundabout jquery plugin, and now i want a slider in each box.

Example: http://fredhq.com/projects/roundabout/demos/standard

But the BxSlider Sliders images a wrong calculated, it starts correct but when I switch to the second box the images which should be "slided" are wrong calculated (it shows 20% of one image and 80% of the other)

Sorry for my english, i hope you know what i mean.

Thanks for the great plugin.

Best Regards

colabeer

colabeer avatar Apr 10 '12 08:04 colabeer

I'm having the same problem. The wrong calculations. The content are vimeo iframes. All of them has width attribute set. I'm also using bootstrap.

faridnsh avatar Apr 29 '12 20:04 faridnsh

Realized only happens in chrome, probably same issue as #101

faridnsh avatar Apr 29 '12 20:04 faridnsh

I think it's also the same as #73 (which provides a probable fix).

selfthinker avatar Jun 14 '12 12:06 selfthinker

hello i think the problem is that the bxslider is miscalculating the number of pixel that he should subtraction from the left attribute on the ul tag when the webkit browsers when the zooming is not on 100% so my solution is to manually calculate this left attribute on onAfterSlide callback like this :

onAfterSlide: function(currentSlideNumber, totalSlideQty, currentSlideHtmlObject){

$("#you-ul-id").css( 'left' , -currentSlideHtmlObject.width()*currentSlideNumber);

} });

you can also use document.getElementById("you-ul-id").style.left = " -currentSlideHtmlObject.width()_currentSlideNumber"; instead of $("#you-ul-id").css( 'left' , -currentSlideHtmlObject.width()_currentSlideNumber); this works for me so i wanted to share wish it helps you to solve this problem

ahmedbc avatar Oct 10 '12 12:10 ahmedbc

Just wanted to say thanks Ahmedbc. This fix worked for me.

bradkoehler avatar Oct 16 '12 12:10 bradkoehler

@bradkoehler you welcome enjoy it .

ahmedbc avatar Oct 19 '12 18:10 ahmedbc

@bradkoehler Thanks for the fix but shouldn't it be $("#you-ul-id").css( 'left' , -currentSlideHtmlObject.width()*(currentSlideNumber + 1)); If I don't my slides get out of sync.

pethel avatar Jun 14 '13 08:06 pethel