rem:  window.resizeTo(0, 0);  window.sizeToContent(); 
context: function onLoad(){  var arguments = window.arguments[0];  dialog = {};  dialog.OKButton = document.getElementById("ok");  dialog.nameField = document.getElementById("name");  dialog.nameField.focus();  // call this when OK is pressed  dialog.okCallback = arguments.okCallback;  // pre select the folderPicker, based on what they selected in the folder pane  dialog.picker = document.getElementById("msgNewFolderPicker");  MsgFolderPickerOnLoad("msgNewFolderPicker");  // can folders contain both folders and messages?  if (arguments.dualUseFolders) {    dialog.folderType = FOLDERS | MESSAGES;  } else {    // set our folder type by calling the default selected type's oncommand    var selectedFolderType = document.getElementById("folderGroup").selectedItem;    eval(selectedFolderType.getAttribute("oncommand"));    // show the section which allows us to select the folder type to create    var newFolderTypeBox = document.getElementById("newFolderTypeBox");    newFolderTypeBox.setAttribute("hidden", "false");  }  // XXX Ugly hack to make sizeToContent work, see bug 62987  window.resizeTo(0, 0);  window.sizeToContent();  moveToAlertPosition();  doEnabling();  doSetOKCancel(onOK, onCancel);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1e51410de5b53a0259452540e8485947d73e56f0/newFolderDialog.js/clean/mailnews/base/resources/content/newFolderDialog.js