Hello all, I am currently using the YUI library and i currently have a dynamic tab in a panel, and what i want to do is when the content loads i want the tab to recenter itself, as it wont be centered when the content is added. ATM i am.

Code JavaScript:
    load: function() {
 
            // Instantiate the Dialog
            text = YAHOO.mostyle.modal(700,"text");
 
            // Create tab handle
            var tab = new YAHOO.widget.TabView({id: 'text'});
 
            // Add tabs
            tab.addTab(tabview = new YAHOO.widget.Tab({ label: 'Add', dataSrc: base_url+'panel_text/add_view', active: true }));
 
              tab.appendTo('config-body');
 
            tabview.addListener('contentChange', function(){ alert('test'); text.cfg.queueProperty("fixedcenter",true); });
 
              // Apppend to document
            YAHOO.util.Event.onContentReady('config-body', function() {
                text.show();
            });
 
            // Add event listeners
            YAHOO.util.Event.addListener("text_show", "click", text.show, text, true);
            YAHOO.util.Event.addListener("text_hide", "click", text.hide, text, true);
        }

Although for some WIERD reason, The

tabview.addListener('contentChange', function(){ alert('test'); text.cfg.queueProperty("fixedcenter",true); });

listener triggers BEFORE the actual content is displayed on the page, so i can execute the center after the panel/tab expands in size, in which i need to do it that way.