ryrych / rcarousel

yet another jQuery UI carousel
http://ryrych.github.com/rcarousel/
171 stars 48 forks source link

auto for height and width does not work #40

Closed ghost closed 12 years ago

ghost commented 12 years ago

width: auto, height: auto,

ryrych commented 12 years ago

There’s no such an option. Read documentation first. Thanks.

ghost commented 12 years ago

why is this not an option? It should be. at least the Height is a must.

How can i disable the height and so i can add "auto"

ryrych commented 12 years ago

Because these options are meant to support many user cases, not only yours. And you are the first to complain about this. You can’t think of them as width and height of an image. You can work around this by putting the desired image (with height of "auto") in a DIV container. But the container should have width and height assigned.Otherwise they will default to 100×100px IIRC.

codeChap commented 12 years ago

I have to agree with brodster, auto for width and height would be useful when the browser gets resized for example.

timmygobang commented 11 years ago

I would also like this feature. I'm building a responsive site. I want to set the width to 100% when the window size is less below a certain size, which means the height would be scaled proportionally and I wouldn't necessarily know what the height would be. An auto parameter would save me creating custom scripts to work out screen height.