AnythingSlider icon indicating copy to clipboard operation
AnythingSlider copied to clipboard

Strange behaviour v.1.7.4

Open bdario opened this issue 15 years ago • 3 comments

There must be a bug in version 1.7.4. The height of the resulting object is exactly the sum of the height of the li items. If I add 5 "li" tags, each containing a 240 x 100px image, the resulting object height will be 500px!

bdario avatar Jul 19 '11 08:07 bdario

Same here. Tried setting height in both javascript and css - doesn't help.

p4tient avatar Jul 19 '11 09:07 p4tient

In the latest versions, the slider dimensions are set using css:

#slider {
  width: 500px;
  height: 300px;
}

But if you have the resizeContents option set to false, then every panel's dimensions need to be defined as well

#slider, #slider li {
  width: 500px;
  height: 300px;
}

The demos and even the jsFiddle works as they should, so if the above doesn't solve the problem, then please share the settings you are using - jsFiddle of the problem would be ideal :)

Mottie avatar Jul 19 '11 13:07 Mottie

Added a comment to the FAQ and closing this issue.

Mottie avatar Jul 25 '11 13:07 Mottie