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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/257a286cb7a2de4a621016812a491a2a7d702d11/EditorPublish.js/buggy/editor/ui/dialogs/content/EditorPublish.js