var best, bestDistance=Infinity; aroundNode = dojo.byId(aroundNode); var oldDisplay = aroundNode.style.display; aroundNode.style.display=""; var mb = dojo.html.getElementBox(aroundNode, aroundType); var aroundNodeW = mb.width; var aroundNodeH = mb.height; var aroundNodePos = dojo.html.getAbsolutePosition(aroundNode, true, aroundType); aroundNode.style.display=oldDisplay; 
var best, bestDistance=Infinity; aroundNode = dojo.byId(aroundNode); var oldDisplay = aroundNode.style.display; aroundNode.style.display=""; var mb = dojo.html.getElementBox(aroundNode, aroundType); var aroundNodeW = mb.width; var aroundNodeH = mb.height; var aroundNodePos = dojo.html.getAbsolutePosition(aroundNode, true, aroundType); aroundNode.style.display=oldDisplay; 
dojo.html.placeOnScreenAroundElement = function(  /* HTMLElement */node,  /* HTMLElement */aroundNode,  /* integer */padding,  /* string? */aroundType,  /* string? */aroundCorners,  /* boolean? */tryOnly){  //  summary  //  Like placeOnScreen, except it accepts aroundNode instead of x,y  //  and attempts to place node around it. aroundType (see  //  dojo.html.boxSizing in html/layout.js) determines which box of the  //  aroundNode should be used to calculate the outer box.  //  aroundCorners specify Which corner of aroundNode should be  //  used to place the node => which corner(s) of node to use (see the  //  corners parameter in dojo.html.placeOnScreen)  //  aroundCorners: {'TL': 'BL', 'BL': 'TL'}  var best, bestDistance=Infinity;  aroundNode = dojo.byId(aroundNode);  var oldDisplay = aroundNode.style.display;  aroundNode.style.display="";  var mb = dojo.html.getElementBox(aroundNode, aroundType);  var aroundNodeW = mb.width;  var aroundNodeH = mb.height;  var aroundNodePos = dojo.html.getAbsolutePosition(aroundNode, true, aroundType);  aroundNode.style.display=oldDisplay;  for(var nodeCorner in aroundCorners){    var pos, desiredX, desiredY;    var corners = aroundCorners[nodeCorner];    desiredX = aroundNodePos.x + (nodeCorner.charAt(1)=='L' ? 0 : aroundNodeW);    desiredY = aroundNodePos.y + (nodeCorner.charAt(0)=='T' ? 0 : aroundNodeH);    pos = dojo.html.placeOnScreen(node, desiredX, desiredY, padding, true, corners, true);    if(pos.dist == 0){      best = pos;      break;    }else{      //not perfect, find out whether it is better than the saved one      if(bestDistance > pos.dist){        bestDistance = pos.dist;        best = pos;      }    }  }  if(!tryOnly){    node.style.left = best.left + "px";    node.style.top = best.top + "px";  }  return best;  //  object}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/65ae7e8768a77997b7894e274bc242069a1cb027/struts_dojo.js.uncompressed.js/clean/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js