Brilliant, guys! Thanks a lot for sharing these enhancement ideas Joel and
Brandon. Not only can the text in the accordion now be resized with no
penalty, but this also makes it possible to swap out the contents of the
accordion sections at runtime! This was a big help (and enlightening). :)

Thanks,
-THEO-



-----Original Message-----
From: Joel Birch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 09, 2006 9:38 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Accordion plugin


> On 11/9/06, Joel Birch <[EMAIL PROTECTED]> wrote:> To this:
>> var finished = function() { --running; this.style.height="auto"; };
>
> Perhaps it would be best to just allow the style sheet to define
> whether or not it is auto by setting the style to a blank string.
>
> var finished = function() { --running; this.style.height = ''; };
>
> --
> Brandon Aaron

Yes, that works too! I didn't know that was possible. And when I view  
the generated source with the webdeveloper toolbar, the height  
property has been deleted from the style attribute, which is better  
than adding height:'auto' to it.

Thanks Brandon.




_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to