Page 1 of 1

jQuery - Width set to auto on BlindToggle

Posted: Sat Jul 19, 2008 11:51 pm
by JAB Creations
Ok I finally have a question that does involve what appears to (for good reason) be everyone's favorite DHTML library jQuery.

With the following options enabled at my site move your mouse cursor over any of the headers (default is a purple background) and click to toggle the collapse/expansion of it's associated layer...
http://www.jabcreations.com/blog/?&back ... leffects=1

The issue is that the width of the associated div is being set to auto...you can tell when it collapses horizontally during the animated transition however I'd like it to retain it's width from before the collapse during the collapse animation (and expansion) as well.

Here is the code associated with header level 2 elements...

Code: Select all

$("h2").click(function(){$(this).next('form').BlindToggleVertically(1000,null, 'bounceout');return true;})

Re: jQuery - Width set to auto on BlindToggle

Posted: Wed Jul 23, 2008 4:31 pm
by JellyFish
What's the width doing? It seems to be animating fine.

Re: jQuery - Width set to auto on BlindToggle

Posted: Wed Jul 23, 2008 5:08 pm
by JAB Creations
JAB Creations wrote:you can tell when it collapses horizontally during the animated transition
So let's say the width of a sidebar is 400px...when it animates it may drop to only 159px in width.