add:    window.sizeToContent(); 
context: function SwitchPanel(panel){  if (gCurrentPanel != panel)  {    // Set index for starting panel on the <tabpanels> element    gDialog.TabPanels.selectedIndex = panel;    if (panel == gSettingsPanel)    {      // Trigger setting of style for the tab widgets      gDialog.SettingsTab.selected = "true";      gDialog.PublishTab.selected = null;    } else {      gDialog.PublishTab.selected = "true";      gDialog.SettingsTab.selected = null;    }    gCurrentPanel = panel;    // This is done to show/compensate for bug 131481    //  Dialog is resized to incorrect size, but at least buttons aren't cut off!//    window.sizeToContent();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a7a0d0cd804141953b1a269a57209b48e53ed397/EditorPublish.js/clean/editor/ui/dialogs/content/EditorPublish.js