[jQuery] accordion setting height: 0px, overflow-y: hidden

[jQuery] accordion setting height: 0px, overflow-y: hidden


Hi,
I'm using the accordion widget that came with the recent release of
jQuery UI and I'm having trouble getting the right height of the
second content of the accordion. The code is as follow:
$(function(){
    $("#side-content").accordion();
});
$(function(){
    // Load the tags and after clicking on a tag add it to the input text
    function get_tags(category) {
    $("div#tags").load('/monitored/tag_cloud/'+category, function () {
        $("div#side-content div#tags p").click( function () {
            $("input#search_text").val(jQuery(this).text());
        });
    });
    }
    // After clicking on a category fill in the select box, retrieve the
tags associated
// with such category and activate the second accordion
    $("div#side-content div#categories p").click( function () {
        cat = jQuery(this).text();
        $("select#category").val(cat);
        get_tags(cat);
        $("div#side-content").activate(1);
    });
});
Initially the first content of the accordion is open with a set of
categories enclosed in

tags. Once a user click on one such a tag
I'd like to set it in a select box, retrieve a set of tags associated
to it, load them in the second content of the accordion and then
activate this second content (via $("div#side-content").activate(1);).
The problem with the code above is that the tags are retrieved but the
style of the content has the following attributes and settings:
height: 0px and overflow-y: hidden.
As a results the tags are there but are not shown.
Please note that if I don't activate programmatically the second tab
and I activate it myself manually (that is, without $("div#side-
content").activate(1);) than the problem doesn't occur. I also tried
to set autoheight: true but in this case the length of the second
content is limited by the content of the first one because initially
the second one is empty (after the tags are retrieved this is much
larger than the first and only a small part is shown).
Do you have any suggestion on how can avoid this problem?
Any help will be very appreciated.
Thanks and regards