rem: var shortName; if (sourceTab.sourceText.shortName.length <= 30) shortName = sourceTab.sourceText.shortName; else shortName = abbreviateWord(sourceTab.sourceText.shortName, 30); tab.setAttribute ("label", shortName); 
add: tab.setAttribute ("crop", "center"); tab.setAttribute ("flex", "1"); tab.setAttribute ("label", sourceTab.sourceText.shortName);  
context: function s2v_createframe (sourceTab, index, raiseFlag){    if (!ASSERT(this.deck, "we're deckless"))        return null;    if (this.tabs.childNodes.length == 1)    {        var bloke = getChildById (this.tabs, "source2-bloke");        if (bloke)            this.tabs.removeChild(bloke);    }    var document = this.currentContent.ownerDocument;    var tab = document.createElement ("tab");    tab.setAttribute ("class", "source2-tab");    tab.setAttribute ("context", "context:source2");    var shortName;    if (sourceTab.sourceText.shortName.length <= 30)        shortName = sourceTab.sourceText.shortName;    else        shortName = abbreviateWord(sourceTab.sourceText.shortName, 30);    tab.setAttribute ("label", shortName);    if (index < this.tabs.childNodes.length)        this.tabs.insertBefore (tab, this.tabs.childNodes[index]);    else        this.tabs.appendChild (tab);    sourceTab.tab = tab;    var tabPanel = document.createElement("tabpanel");    tabPanel.setAttribute ("flex", "1");    var iframe = document.createElement("browser");    iframe.setAttribute ("flex", "1");    iframe.setAttribute ("context", "context:source2");    iframe.setAttribute ("type", "content");    iframe.setAttribute ("onclick",                         "console.views.source2.onSourceClick(event);");    iframe.setAttribute ("targetSrc", sourceTab.sourceText.jsdURL);    if (raiseFlag)        iframe.setAttribute ("raiseOnSync", "true");    tabPanel.appendChild (iframe);    if (this.deck.childNodes.length > index)        this.deck.insertBefore (tabPanel, this.deck.childNodes[index]);    else        this.deck.appendChild(tabPanel);    sourceTab.iframe = iframe;    this.syncOutputFrame (iframe);    return iframe;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/171d43ee25fb94ca659d1f263eb012f84471dd4a/venkman-views.js/clean/extensions/venkman/resources/content/venkman-views.js