rem: sizeToContent(); 
add: resizeTo(window.outerWidth, window.outerHeight+(willCollapse?-WSucks:+WSucks)); 
context: function expandTree(){  setFolderTreeHeight();  var willCollapse = !gBookmarksTree.collapsed;  gExpander.setAttribute("class",willCollapse?"down":"up");  gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptext"+(willCollapse?"down":"up")));  if (willCollapse)    document.documentElement.buttons = "accept,cancel";  else {    document.documentElement.buttons = "accept,cancel,extra2";#   always open the bookmark root folder    if (!gBookmarksTree.treeBoxObject.view.isContainerOpen(0))      gBookmarksTree.treeBoxObject.view.toggleOpenState(0);    selectFolder(gSelectedFolder);    gBookmarksTree.focus();  }  gBookmarksTree.collapsed = willCollapse;  sizeToContent();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7fb227df4f9d5b693be00d081f76e85a6b771957/addBookmark2.js/clean/browser/components/bookmarks/content/addBookmark2.js