jQuery animate with width and scrollTo doesn't work properly
<p>I have a container that when an element within it is clicked, the container expands but doesn't scroll to the element within the container.</p>

<pre><code>function setPanelWidth( container, w ) {
    if ( $(container + ' .selected').length ){
        scroll = $(container + ' .selected').offset().top;
    } else {
        scroll = 0;
    }
    $(container).animate({
        width: w + 'px',
        scrollTop: scroll
    }, 
    'slow', 
    function(){
        $(container).show();
    });

    return false;
}

// Sets the width of a panel
setPanelWidth('#containerID', 200 );
</code></pre>

<p>I have other code to add a class called 'selected' to the clicked element within the container and that works fine.</p>

<p>The $(container).show(); in the completed function is to reset things for IE7.</p>

<p>Any ideas how I can get 'scrollTop: scroll' to work?</p>
