CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

Slider not resized after slide content update #455

Closed biibox closed 12 years ago

biibox commented 12 years ago

Hello,

I setup an AnythingSlider with the resizeContents:false option, so content is at its normal size inside the slider. It works well with content from page load. But when I try to update the content of a slide in Javascript, it is not resized.

I setup a jsfiddle to illustrate that : http://jsfiddle.net/YEmM5/. Slides 2 and 3 are OK. In Slide 1, if you click on the button it fakes an image upload and places an image in the slide (it also fakes a server response with the size of the image, so it is set explicitely), it is not resized like the others.

I tried to wait for the image to be loaded to call the AnythingSlider update, but nothing happens.

Should I update the slider another way or is it a bug ?

Thanks !

biibox commented 12 years ago

This is fixed : http://jsfiddle.net/YEmM5/1/