nicinabox / superslides

A fullscreen, hardware accelerated slider for jQuery.
http://archive.nicinabox.com/superslides
MIT License
1.51k stars 443 forks source link

inherit_height_from each child #344

Closed ixlipixli closed 8 years ago

ixlipixli commented 8 years ago

Hi,

thank you for the great slider. I am currently working with it and discovered a problem. I have several boxes, where I use the slider. Each box is splitted in text and a box for the slider. The text should define the height of the box for the slider. With inherit_height_from: (textbox) I can make that work for the first slider but the problem is, that the following sliders always take the height form the first text box.

So there is something missing like "for each"/"this child element", or does it exist and I did it wrong?

Thank you!

ixlipixli commented 8 years ago

Or is it possible to set a variable for the inherit_height_from? Like: var id= $(this).attr("id"); ... $('.nb .slides').superslides({ inherit_height_from: id })

For me it doesn't seem to work.