rem:   var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2); 
add:  var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - parseInt(document.documentElement.style.width)) / 2); 
context: function repositionDialog(){  // Position the dialog touching the bottom of the toolbox and centered with   // it. We must resize the window smaller first so that it is positioned   // properly.   var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2);  var screenY = gToolbox.boxObject.screenY + gToolbox.boxObject.height;  var newHeight = kWindowHeight;  if (newHeight >= screen.availHeight - screenY - kVSizeSlop) {    newHeight = screen.availHeight - screenY - kVSizeSlop;  }  window.resizeTo(kWindowWidth, newHeight);  window.moveTo(screenX, screenY);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a32f4e2afd6a61fb4805073d7ead7ee533f20459/customizeToolbar.js/clean/toolkit/content/customizeToolbar.js