jQuery - Width set to auto on BlindToggle

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

jQuery - Width set to auto on BlindToggle

Post 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;})
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: jQuery - Width set to auto on BlindToggle

Post by JellyFish »

What's the width doing? It seems to be animating fine.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: jQuery - Width set to auto on BlindToggle

Post 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.
Post Reply