nathansearles / slidesjs

SlidesJS is obsolete and no longer maintained.
https://nathansearles.github.io/slidesjs/
1.71k stars 357 forks source link

slider does not redisplay correctly after calling jQuery.toggle() #251

Open alpendergrass opened 13 years ago

alpendergrass commented 13 years ago

Hi,

Great plugin, thanks for the effort. However...

In doc.ready I sometimes need to hide the slider (I'm using jQuery.hide() method). When I call .toggle() to display, the slides_control div does not display: style="position: relative; width: 0px; height: 0px; left: 0px;" It appears that we need to reset width and height when showing the slider. It is not clear to me how to modify the plugin to do this so I will attempt to code around it for now.

Best, Al Pendergrass

ghost commented 12 years ago

Hi Albert,

I am having the same problem like you did. The set Height hidden all the overflow toggle item. May I know how exactly you solved it? I am attaching my demo site here, and hope that you can help.

http://demo.buncreative.com/thaipan/menu.html

Very much appreciate, if you don't mind to spare me some times. Thanks a million.

Danc

alpendergrass commented 12 years ago

Hi Danc,

That was a long time ago, I do not remember this issue. Looking at my code I found where I am using the slidesLoaded callback to deal with some display issues caused by hiding the slider, not sure if it was this specific issue though. Hope this helps:

$this.slides({ ... slidesLoaded: function() { //if we have a slider on page 2 it will disappear if we hide stuff before we are through initializing the slider. $(".page-break").nextAll(".fieldrow").hide(); } ... });