add:  return {width: element.offsetWidth, height: element.offsetHeight}; 
context: Element.getDimensions = function(element){  element = $(element);  // All *Width and *Height properties give 0 on elements with display "none", so enable the element temporarily  if (element.style.display == "none"){    var originalVisibility = element.style.visibility;    var originalPosition = element.style.position;    element.style.visibility = "hidden";    element.style.position = "absolute";    element.style.display = "";    var originalWidth = element.clientWidth;    var originalHeight = element.clientHeight;    element.style.display = "none";    element.style.position = originalPosition;    element.style.visibility = originalVisibility;    return {width: originalWidth, height: originalHeight};      } else {    return {width: element.offsetWidth, height: element.offsetHeight};  }} 
meta: 515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/515/7d101d58400acaff232091485c8e140f0a37cbaf/util.js/buggy/railties/html/javascripts/util.js