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

Expand is setting slide height to 0px #585

Closed hornetnz closed 11 years ago

hornetnz commented 11 years ago

I'm trying to do a window-wide slider. If I leave expand off, the slide works but defaults to 960 wide. If I turn it on, the slide is the right width, but has 0px height.

Here is my init: $j('#ImgRotator').anythingSlider({ autoPlay: true, pauseOnHover: true, easing: "swing", buildArrows: false, startStopped: false, startText: "", stopText: "", delay: 9500, animation: 2000, buildNavigation: true, expand:true,resizeContents: true, navigationFormatter: function (i, p) { return '' } });

I've added height/width to the parent... .sliderinnerwrapper { height:463px; width:1500px; display: block; }

And attached is my raw source code coming from Sitefinity: capture

hornetnz commented 11 years ago

Setting the height on div.anythingSlider did the trick.