add:  var newHeight = kWindowHeight; if (newHeight >= screen.availHeight - screenY - kVSizeSlop) { newHeight = screen.availHeight - screenY - kVSizeSlop; }  window.resizeTo(kWindowWidth, newHeight); 
context: function repositionDialog(){  // Position the dialog touching the bottom of the toolbox and centered with it  var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2);  var screenY = gToolbox.boxObject.screenY + gToolbox.boxObject.height;  window.moveTo(screenX, screenY);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/14ad27d49d60652952ce617e85058fb5e21cab4e/customizeToolbar.js/buggy/mail/base/content/customizeToolbar.js